cancel
Showing results for 
Search instead for 
Did you mean: 

Add indentation to pivot cell values

gyanianand
8 - Cloud Apps
8 - Cloud Apps

Hi Team and @Angelina_QBeeQ 

I want to add indentation in pivot cell please help:

gyanianand_0-1688619002559.png

it should be displayed like the below image

gyanianand_1-1688619129954.png

 

1 REPLY 1

Angelina_QBeeQ
10 - ETL
10 - ETL

Hi @gyanianand ,
Check the next script for your case:

widget.transformPivot(
	{},
  function (metadata, cell) {
    if (metadata.colIndex == 0 && metadata.rowIndex >= 1) {
	cell.content = '\u00A0'+cell.content
    }
  }
);

The script will indent values from the first column in the table.

Always here to help,
Angelina from QBeeQ
[email protected]
QBeeQ - Gold Implementation and Development Partner