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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
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ês