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
szub
Helper III
Helper III

How to get a count based on multiple criteria.

Hello,

I am working on metrics and some of our branches do not collect all of the same data.  So, I am trying to have the metrics reflect  only those records where the information is populated.  For example I am trying to calculate the percentage of claims where a servicer arrived the same day.  This is a data point that most, but not all of my branches collect. I am dividing the count of claims where the servicer arrived the same day by the total claim count and I would like the total claim count to only include the claims with specifc branch names.  I created a formula to get claim counts by one branch, but cannot add more than one "branch" name in the formula without getting an error.  = CALCULATE('Table'[Claim Count],'Table'[Branch] = "Branch A")

 

Maybe there is a different way to achieve what I need?

 

Thank you for any assistance!

1 ACCEPTED SOLUTION
Kerrymr
Helper I
Helper I

Try this:

CALCULATE('Table'[Claim Count],'Table'[Branch] IN {"Branch A", "BranchB", "BranchC")

 

Let me know if that works,

Kerry

View solution in original post

4 REPLIES 4
v-yuta-msft
Community Support
Community Support

@szub ,

 

Could you please share some sample data and show the expected result?

 

Regards,

Jimmy Tao

 

 

Kerrymr
Helper I
Helper I

Try this:

CALCULATE('Table'[Claim Count],'Table'[Branch] IN {"Branch A", "BranchB", "BranchC")

 

Let me know if that works,

Kerry

@Kerrymr this worked.  Thank you!

Glad it helped.

Kerry

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.

Top Kudoed Authors