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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
I have created the following DAX to get the count of all records in a dimension (Getting rid of NAs)
Possible odd DAX Behaviour of a DISTINCTCOUNT of a dimension key
Solved! Go to Solution.
Hi @DebbieE ,
This has to do with the context and the way the calculate works. The use of calculate with a filtering when applied make the same calculation has a filter all.
In your case when you take out the ID from the measure it will pick up all the values from the ID and then getting the 16 instead of 1 for each of the values.
Check the link about the CALCULATE and how it works.
Context is everything especcially when working with calculate, in this case you should substitute the ID by the SUBTERM and believe you will get the correct result.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @DebbieE ,
This has to do with the context and the way the calculate works. The use of calculate with a filtering when applied make the same calculation has a filter all.
In your case when you take out the ID from the measure it will pick up all the values from the ID and then getting the 16 instead of 1 for each of the values.
Check the link about the CALCULATE and how it works.
Context is everything especcially when working with calculate, in this case you should substitute the ID by the SUBTERM and believe you will get the correct result.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsVote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 56 | |
| 52 | |
| 45 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 108 | |
| 108 | |
| 39 | |
| 33 | |
| 25 |