Forum Discussion
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!
Try this:
CALCULATE('Table'[Claim Count],'Table'[Branch] IN {"Branch A", "BranchB", "BranchC")
Let me know if that works,
Kerry
4 Replies
- Kerrymr
Helper I
Try this:
CALCULATE('Table'[Claim Count],'Table'[Branch] IN {"Branch A", "BranchB", "BranchC")
Let me know if that works,
Kerry
- v-yuta-msft
Community Support