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!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
Dear Colleagues;
Please could you help me the fund a solution i'm not expert in DAX:
I have two colomns (Satus and Date):
In the colomn "Status" i would like to count the number of "Pass" AND "Fail" only if in the colomns "Date" the Date is not blank
below is my mesure
Solved! Go to Solution.
Hi @dofrancis3 ,
If I understand correctly, the issue is that you want to count the number of Pass and Fail. Please try the following methods and check if they can solve your problem:
1.Create the simple Table.
2.Create a new measure to calculate the number. Enter the following DAX formula.
Nbr of Pass and Fail Status =
CALCULATE(
COUNTROWS('Table'),
'Table'[Status] IN {"Pass", "Fail"},
NOT(ISBLANK('Table'[Date]))
)
3.Move the measure into the card visual.
Best Regards,
Wisdom Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @dofrancis3 ,
If I understand correctly, the issue is that you want to count the number of Pass and Fail. Please try the following methods and check if they can solve your problem:
1.Create the simple Table.
2.Create a new measure to calculate the number. Enter the following DAX formula.
Nbr of Pass and Fail Status =
CALCULATE(
COUNTROWS('Table'),
'Table'[Status] IN {"Pass", "Fail"},
NOT(ISBLANK('Table'[Date]))
)
3.Move the measure into the card visual.
Best Regards,
Wisdom Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Please try something like below if it suits your requirement.
Nbr of Status =
CALCULATE (
COUNTROWS ( repository ),
( repository[Status] = "Pass"
|| repository[Status] = "Fail" )
&& repository[Date] <> BLANK ()
)
Dear @Jihwan_Kim thank you for your support it work but i would like to use the same logic to Summarize "sampled" colomn only if the "date" is not blank
Be low my mesure
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.