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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

How to count rows in one column for 2 different integers (count row with "10000" as well as "10100)?

I used this measure that returns the count of all rows in a column that contains 10000: 

 

CountBuisinessUnit = CALCULATE ( COUNTROWS ( FILTER ( 'All Current Employees', VALUE ( 'All Current Employees'[Business Unit]) = 10000 ))) 
 
BUT I have one business unit that consits of two BU codes. So, I need to have one measure count all rows in the column that have 10000 but also the rows that have 10100.
1 ACCEPTED SOLUTION
themistoklis
Community Champion
Community Champion

@Anonymous 

 

You can try this formula

 

CountBuisinessUnit = CALCULATE ( COUNTROWS ( FILTER ( 'All Current Employees', VALUE ( 'All Current Employees'[Business Unit]) = 10000 ||  VALUE ( 'All Current Employees'[Business Unit]) = 10100))) 

View solution in original post

3 REPLIES 3
v-xiaoyan-msft
Community Support
Community Support

Hi@Anonymous,

 

It's pleasant if your problem has been solved, could you please mark the reply as Answered? that way, other community members will easily find the solution when they get the same issue.

 

 

Hope it helps.

 

Best Regards,
Caitlyn Yan

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

 

themistoklis
Community Champion
Community Champion

@Anonymous 

 

You can try this formula

 

CountBuisinessUnit = CALCULATE ( COUNTROWS ( FILTER ( 'All Current Employees', VALUE ( 'All Current Employees'[Business Unit]) = 10000 ||  VALUE ( 'All Current Employees'[Business Unit]) = 10100))) 
Anonymous
Not applicable

Thank you themistoklis!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.