The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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
User | Count |
---|---|
15 | |
12 | |
7 | |
6 | |
5 |
User | Count |
---|---|
24 | |
20 | |
12 | |
9 | |
7 |