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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Zaky
Helper IV
Helper IV

Measure to count multiple status

Hi,

 

What is the correct measure to count [WO Measurement Status]="Missed" and "Missed Goal"?

I used the following measure and i want to count also "Missed Goal" status.

 

WO Missed = CALCULATE(COUNTROWS('WO'),'WO'[WO Measurement Status]="Missed")

 

calculate.JPG

 

Thanks

 

1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

@Zaky

 

You can use IN operator

 

WO Missed and Missed Goal =
CALCULATE (
    COUNTROWS ( 'WO' ),
    'WO'[WO Measurement Status] IN { "Missed", "Missed Goal" }
)

View solution in original post

2 REPLIES 2
Zubair_Muhammad
Community Champion
Community Champion

@Zaky

 

You can use IN operator

 

WO Missed and Missed Goal =
CALCULATE (
    COUNTROWS ( 'WO' ),
    'WO'[WO Measurement Status] IN { "Missed", "Missed Goal" }
)

Thanks for your help. It's work. Smiley Happy

 

Regards,

Zaky

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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