This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowJuly 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more
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
if not "TRIFR" then no decimal.
I understand i need to use IF & FILTER & FORMAT.
You could create a calculation group with a different calculation item for each category. Each calculation item can have a different format string, and that format string can even include DAX so you could put any additional logic you needed in there.
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?
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.
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.
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!
Check out the July 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 25 | |
| 23 | |
| 19 | |
| 17 | |
| 14 |
| User | Count |
|---|---|
| 24 | |
| 23 | |
| 20 | |
| 20 | |
| 19 |