Forum Discussion
486kyoko
3 years agoRegular Visitor
Format Different format for decimal
Hello, I have to present the number differently. Number without Decimial (ie 0 decimal) and with Decimal. in this example if category = "TRIFR" then SUM value with decimal 0.00 ...
486kyoko
3 years agoRegular Visitor
thanks for comments. so you meant I need to create 6 calculation (or measures) with different format strings... then what you mean by putting additional logic in where?? in the Var/Return measure?
johnt75
3 years agoSuper User
they wouldn't be measures, they would be calculation items in a calculation group. each calculation item has a format string expression which you can set in Tabular Editor when you create the item. that format string expression can contain DAX, so you can put IF or SWITCH statements in there if you need to.
- 486kyoko3 years agoRegular Visitor
Thanks again for reply. unfortunately i cannot download the external tool as company IT policy. I am seeking a solution from basic DAX code now. Thank you for help.