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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Maz_0102
Helper I
Helper I

how to count a status column with blanks as well

Hello community,

 

Please i really need your assistance 

 

I am trying to count a column based on some conditions 

 

two columns = Status and Uploaded 

 

I want to count all the data in approved from 'Status' combined with 'No' and blanks from column 'uploaded'

 

I am trying to use the formula below but the last part of the formual underlined is preventing me from doing it. 

 

Please can you advise

 

= CALCULATE(COUNT('Hazard and Near Miss Report'[Type of Hazard]), 'Hazard and Near Miss Report'[Status] = "Approved",'Hazard and Near Miss Report'[Uploaded in 4sight] = "No", 'Hazard and Near Miss Report'[Uploaded in 4sight] = blank())
1 ACCEPTED SOLUTION

Hi @Maz_0102 
I might have misunderstood your description. Please try

=
COUNTROWS (
    FILTER (
        'Hazard and Near Miss Report',
        AND (
            'Hazard and Near Miss Report'[Status] = "Approved",
            'Hazard and Near Miss Report'[Uploaded in 4sight] = "No"
                || 'Hazard and Near Miss Report'[Uploaded in 4sight] = BLANK ()
        )
    )
)

View solution in original post

4 REPLIES 4
tamerj1
Super User
Super User

Hi @Maz_0102 

please use

=
COUNTROWS (
    FILTER (
        'Hazard and Near Miss Report',
        'Hazard and Near Miss Report'[Status] = "Approved"
            || 'Hazard and Near Miss Report'[Uploaded in 4sight] = "No"
            || 'Hazard and Near Miss Report'[Uploaded in 4sight] = BLANK ()
    )
)

Hi 

 

thank you replying 

 

I have executed this below but the number is not returning correct

 

It should be 38

 

Maz_0102_1-1653647703858.png

 

Hi @Maz_0102 
I might have misunderstood your description. Please try

=
COUNTROWS (
    FILTER (
        'Hazard and Near Miss Report',
        AND (
            'Hazard and Near Miss Report'[Status] = "Approved",
            'Hazard and Near Miss Report'[Uploaded in 4sight] = "No"
                || 'Hazard and Near Miss Report'[Uploaded in 4sight] = BLANK ()
        )
    )
)

YOU ARE AMAZING! THANK YOU

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.