Forum Discussion
nirvana_moksh
Impactful Individual
7 years agoMatrix with different format for values
Hello All, I am running into an issue wherein I am trying to create the below visual which is a matrix. In regards to the data, I have manipulated it by unpivoting the data and getting all 'Colum...
- 7 years ago
HI, nirvana_moksh
You could use FORMAT Function to custom format it
Measure = IF(SELECTEDVALUE('Table'[Attribute])="%GROWTH", FORMAT(CALCULATE(SUM('Table'[Value])),"Percent"),FORMAT(CALCULATE(SUM('Table'[Value])),"Currency"))Result:
BeforeAfter
and here is pbix file, please try it.
Best Regards,
Lin
v-lili6-msft
Community Support
7 years agoHI, nirvana_moksh
You could use FORMAT Function to custom format it
Measure = IF(SELECTEDVALUE('Table'[Attribute])="%GROWTH", FORMAT(CALCULATE(SUM('Table'[Value])),"Percent"),FORMAT(CALCULATE(SUM('Table'[Value])),"Currency"))
Result:
BeforeAfter
and here is pbix file, please try it.
Best Regards,
Lin
sulovsky
6 years agoNew Member
Hi,
being in the same problem, I have noticed, that in this solution the % fall in grand total (understandably). any intresting trick to avoid it (except for hidint total).