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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.