Forum Discussion
Matrix Table Headers Order
- 3 years ago
Hey PatCreator ,
you can not achieve what you are looking for without using a little trick.
Create an unrelated table with two columns
Measure Name and Measure Order
Use the name of the measure/columns you are currently using in the Values bucket, and provide an index to order the values of the name column accordingly.
Then you can create a measure like so:
switch measure= var SelectedKPI = SELECTEDVALUE( 'unrelated table'[NameColumn] ) return SWITCH( SelectedKPI , "name1" , [Measure1] , "name2" , [Measure3] , "name3" , [Measure3] )Maybe it is necessary that you create measures or internal calculations if the columns you are using in the values bucket are numeric columns and not measures
Hopefully, this provides an idea of how you can tackle your challenge.
Regards,
Tom
Hey PatCreator ,
you can not achieve what you are looking for without using a little trick.
Create an unrelated table with two columns
Measure Name and Measure Order
Use the name of the measure/columns you are currently using in the Values bucket, and provide an index to order the values of the name column accordingly.
Then you can create a measure like so:
switch measure=
var SelectedKPI = SELECTEDVALUE( 'unrelated table'[NameColumn] )
return
SWITCH(
SelectedKPI
, "name1" , [Measure1]
, "name2" , [Measure3]
, "name3" , [Measure3]
)
Maybe it is necessary that you create measures or internal calculations if the columns you are using in the values bucket are numeric columns and not measures
Hopefully, this provides an idea of how you can tackle your challenge.
Regards,
Tom
- PatCreator3 years agoFrequent Visitor
Hi TomMartens , Sorry for late response, I've been trying to do what you suggest, but its difficult, I'm still not able to do it right 😞
This is how main data looks like
what I did:
wold it be ok, if I share with you a link to view the pbi rep?