Forum Discussion
Anonymous
4 years agoNot applicable
rounding decimals
i have a dax formula that calculate a cost per unit(spending divided by quantity). but when filter is applied for certain category such as , if category for food or beverages is selected, the cost pe...
- 4 years ago
Hi Anonymous
You might have to use calculation groups for this:
https://www.sqlbi.com/articles/controlling-format-strings-in-calculation-groups/
Please accept the solution when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
amitchandak
Super User
4 years agoAnonymous , Actually Might have to use format, but that might make it text
if(max(table[Category] in {"food","beverages"}, Format([Measure], #,###.0000) , Format([Measure], #,###.00) )