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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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