cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Swap Axis for Measure in Table

0 Kudos
486

Hi Folks,

I would like to change the measure used in table, as per the example below, this works as expected.

Table.setDimensionFilter(Alias.MeasureDimension,"ELTUIDCMP5");

I would however like to swap the axis via script. Measures are currently set as 'columns' and I would like to change to 'rows'. How do I do this for a table widget?

Thanks

Patrick

View Entire Topic
Bob0001
Product and Topic Expert
Product and Topic Expert
0 Kudos

Checkout addDimensionsToColumns and addDimensionsToRows and related methods on Table. You may refer to the measure dimension using Alias.MeasureDimension.

0 Kudos

Thanks Bob,

It really was that simple!

Table.addDimensionToRows(Alias.MeasureDimension);

Cheers

Patrick