Forum Discussion
Matrix Visual - Single 'Values' field over multiple columns with different decimal places
Incipient , You can try a measure like
Measure =
Switch( Max(Table[Attr]) ,
"Population", format(sum(Table[Value]), "#,###") ,
"Avg Pop Age", format(Average(Table[Value]), "percent")
)
amitchandak Thanks for the suggestion!
Yeah a measure is my fallback, but it's very far from remotely good.
My data is a lot more complex than this, so the measure is not so straightfoward, and a functional issue is when users export data that has been converted to text with format(), the xlsx has all of the cells as 'text' not a number, so it heavily breaks usability in excel.
- amitchandak4 years ago
Super User
Incipient , You will have a lot of measures. You can pivot in power query
- Anonymous4 years agoNot applicable
Incipient if you want the attributes to be filtered dynamically then amitchandak provided solution is the right one.
As you are going to have all the formatting under one single measure, yes it will be text format and once you export it in excel you have to do the pivot.
But yeah, i do understand your pain as i have gone through the same.
But no any other way than doing as amitchandak given.