Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
I've got a table with multiple different data types. The table looks like this:
stat_type | Name | Value |
Decimal | ZXC | 1.5 |
Decimal | QWE | 5.6 |
Percentage | TYU | 0.80 |
And DAX code like this:
I can see from a card on the page it correctly works out the stat type, then the correct part of the if statement is found. When using a table it works fine. But whenever I use any type of graph, its blank. Anyone know why / how to fix it?
FORMAT returns a string, so the value passed in to the graph would not be numeric. You could either have seperate measures which perform calculations on the different types, or you could look at creating a calculation group and use format string expression on the calculation item. You can use DAX inside the format string expression so you can return different format strings depending on logic.
User | Count |
---|---|
15 | |
11 | |
6 | |
6 | |
5 |
User | Count |
---|---|
29 | |
17 | |
11 | |
7 | |
5 |