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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
A customer asked me to create a table that displays a variety of columns including one called recommendation. They mentioned that one group which I will call AAA does not do recommendations but still wants the data to be displayed with an NA next to the measure for that group. I spent some time adding ISBLANK, distinctcountblank etc and it isnt working which I know why, but need some help if anyone can throw their two cents in. Here is the DAX Measure that is working properly with the exception that it is distinctly counting blank measures for AAA. I need it to display NA for when AAA comes up, then function the way the measure is written when it doesnt. Thanks.
Solved! Go to Solution.
Try an if statement (or a switch function).
Measure = if(MAX(Table[Group])="AAA","NA",{whatever calculation you need when the group IS NOT AAA})
Try an if statement (or a switch function).
Measure = if(MAX(Table[Group])="AAA","NA",{whatever calculation you need when the group IS NOT AAA})
That worked. Thanks. Much appreciated.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |