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
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
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.

Top Solution Authors