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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.