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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

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
Anonymous
Not applicable

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
October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.