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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Peter_2020
Helper III
Helper III

Count of the rows with specific conditions

Hello all, 

 

I would like to ask you for help with following situation:

 

I have table with data about production orders, which is combination of two tables - Person and Data. After activation of few filters table looks like this:

Peter_2020_0-1714765979165.png

As you can see on PO 111111111 worked 2 operators - Steve and John. what I want to achieve is that after filtering of the data I will get one row with number of operators worked on specific PO:

Peter_2020_1-1714766127953.png

For better understanding I am sharing example in pbix file:

Operators.pbix

 

Thank you for your help in advance. 

P.

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

Try this measure

Measure = if(ISBLANK([Number of operators]),BLANK(),CALCULATE([Number of operators],ALLEXCEPT(Data,Data[PO])))

Hope this helps.

Ashish_Mathur_0-1714779767918.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

Try this measure

Measure = if(ISBLANK([Number of operators]),BLANK(),CALCULATE([Number of operators],ALLEXCEPT(Data,Data[PO])))

Hope this helps.

Ashish_Mathur_0-1714779767918.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

It works! Thank you @Ashish_Mathur for your help.

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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