Forum Discussion
Matrix with different format for values
- 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
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
- sulovsky6 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).
- corange6 years agoPost Patron
Hi,
This works well. My table is set up with Client Name at the row level and then on the column level you have attribute into two categories (revenue / job count) and further broken down into Month, Period and Date when you drill down in the matrix visual.
I have used your formula to format accordingly value for Revenue in Currency. However, when I use the measure, it will show me all the date I have in the calendar. It is like it doesnt respond to any slicer I have got one anymore.
Any idea how to fix this?
Thank you