Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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.
User | Count |
---|---|
89 | |
75 | |
69 | |
65 | |
58 |
User | Count |
---|---|
103 | |
94 | |
74 | |
60 | |
59 |