Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
SMiller_FL
Contributor III
Contributor III

KPI with 2 criteria and one is a sum

I want to count all [Primary Care Managers] who have a case load greater than 90. There is a [countall] field that already has a 1 in each row  that I could use to count. I also need to filter on the column [Tier-TierNum] and select just those that are '3'. 

I have tried the following and I am not getting the correct answer. Any help in correcting my syntax would be appreciated as always!

Count({<[Primary Care Manager Name]={"=count([countall])>90"}, [Tier-TierNum]={'3'}>} distinct [Primary Care Manager Name])

=count(distinct aggr(if(count(distinct [Primary Care Manager Name])>"90",[Tier-TierNum]={"3"}),[Primary Care Manager Name]))

 

1 Solution

Accepted Solutions
rubenmarin

Hi, can you try with?:

Count({<[Primary Care Manager Name]={"=sum({<[Tier-TierNum]={'3'}>}[countall])>90"}>} distinct [Primary Care Manager Name])

View solution in original post

3 Replies
vinieme12
Champion III
Champion III

Does the field TierNum. relate to Manager Name or the Cases??

 

If TierNum relates to Cases then try below

=Count({<

[Primary Care Manager Name]={"=count({<[Tier-TierNum]={'3'}>} [countall])>90"}

>} distinct [Primary Care Manager Name])

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
rubenmarin

Hi, can you try with?:

Count({<[Primary Care Manager Name]={"=sum({<[Tier-TierNum]={'3'}>}[countall])>90"}>} distinct [Primary Care Manager Name])

SMiller_FL
Contributor III
Contributor III
Author

Thanks!!! I keep getting the syntax terribly  out of order.