Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Switch Column Headers in Matrix Visual

Hi Team,

 

I have the below 3 Columns in my data.   

 

OrderidAgeSlabUpdatedAge slab
120+ Days0-1Days
220+ Days2-5Days
311-19Days0-1Days
411-19Days2-5Days
58-10Days0-1Days
68-10Days2-5Days
76-7Days0-1Days
86-7Days2-5Days
92-5Days0-1Days
102-5Days2-5Days
110-1Days0-1Days

 

I need to give a user a flexibility to choose between AgeSlab and UpdatedAgeSlab in a matrix visual.

 

The slabs go in the colum header and the values will be Count(orderid).

 

I tried the below dax for creating a calculated column with a supporting table created.

 

if(selectedvalue(supporttable[column1])="Created",table1[AgeSlab],table1[UpdatedAgeSlab])

but this is not working.

 

Any help on this please.

2 Replies