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.
Hi everyone!
I have table with columns that are these measures:
Calc_Green= CALCULATE(DISTINCTCOUNT('Table'[Qty)]),'Table'[Type]="Green"
Calc_Red= CALCULATE(DISTINCTCOUNT('Table'[Qty)]),'Table'[Type]="Red"
etc.
All columns and the slicer are from the same dataset. The problem is when the slicer applied (say I choose Red) values are shown in other columns as well although there should be null values in all columns except "Red"
What might be the problem here?
Thanks!
Maria
Solved! Go to Solution.
@Maria9292 , Try like
Calc_Red= CALCULATE(DISTINCTCOUNT('Table'[Qty]),filter(all('Table'),'Table'[Type]="Red"))
But better to Type table joined with your table and then use the filter on type table
Calc_Red= CALCULATE(DISTINCTCOUNT('Table'[Qty]),filter(all('Type'),'Type'[Type]="Red"))
Hi @Maria9292,
Your formula will effect by slicers, when you apply one to the visual, these formulae with try calculated based on the condition. For the current row contents measure formula calculated, colors are being filtered by slicer so they will null value in the results.
You can take a look at the following link about all functions to know more about this and add them to your formula to ignore the filter effect that applies to formulas:
Managing “all” functions in DAX: ALL, ALLSELECTED, ALLNOBLANKROW, ALLEXCEPT
Regards,
Xiaoxin Sheng
Hi @Maria9292,
Your formula will effect by slicers, when you apply one to the visual, these formulae with try calculated based on the condition. For the current row contents measure formula calculated, colors are being filtered by slicer so they will null value in the results.
You can take a look at the following link about all functions to know more about this and add them to your formula to ignore the filter effect that applies to formulas:
Managing “all” functions in DAX: ALL, ALLSELECTED, ALLNOBLANKROW, ALLEXCEPT
Regards,
Xiaoxin Sheng
@Maria9292 , Try like
Calc_Red= CALCULATE(DISTINCTCOUNT('Table'[Qty]),filter(all('Table'),'Table'[Type]="Red"))
But better to Type table joined with your table and then use the filter on type table
Calc_Red= CALCULATE(DISTINCTCOUNT('Table'[Qty]),filter(all('Type'),'Type'[Type]="Red"))
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.