Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
dofrancis3
Resolver I
Resolver I

Blank and no Blank value

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

Nbr of Status = CALCULATE(COUNTROWS(repository),repository[STATUS]= "Pass"||repository[STATUS]= "Fail")
 
Thank you for your support
1 ACCEPTED SOLUTION
Anonymous
Not applicable

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.

vjiewumsft_0-1707728102998.png

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.

vjiewumsft_1-1707728127650.png

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.

 

 

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

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.

vjiewumsft_0-1707728102998.png

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.

vjiewumsft_1-1707728127650.png

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.

 

 

 

Jihwan_Kim
Super User
Super User

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 ()
)

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

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

Tot_sampled =
VAR __numberOfInterwd = SUM(LQASrepository[Total sampled),
                                            && LQASrepository[Start date] <> BLANK ())
RETURN
IF(ISBLANK(__numberOfInterwd), "No Data",__numberOfInterwd)
 
Please support

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.