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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi,
Need help on DAX to exclude if Count= zero. Using below DAX formula.
1) PRT0_CFnFail = sum(Data[CountFnF]) <Sum of Count>
2) PRT1_AllDefectsFn = CALCULATE([PRT0_CFnFail],ALL(Data[FailDefectCode])) <Sum of all rows>
Currently the DAX in (2), list all rows even if (1) = zero.
Que: How can I change (2) to exclude rows when (1) equals to zero. Objective is to exclude rows if count is zero.
Solved! Go to Solution.
You can modify your DAX formula for (2) to be:
PRT1_AllDefectsFn = IF(ISBLANK([PRT0_CFnFail]),BLANK(),CALCULATE([PRT0_CFnFail],ALL(Data[FailDefectCode])))
You can modify your DAX formula for (2) to be:
PRT1_AllDefectsFn = IF(ISBLANK([PRT0_CFnFail]),BLANK(),CALCULATE([PRT0_CFnFail],ALL(Data[FailDefectCode])))
Make Count Measure
Put Count Measure in Filter <> 0