Forum Discussion
millercj
1 year agoRegular Visitor
Measure on a measure
For reference, I am an insurance agent. Goal: I need to count the number of entities (customers) where ActivePolicyCount=1 I have a table named "Entities" (essentially customers). Within that...
- 1 year ago
you can try below measure
Count_Customers_ActivePolicy1 = CALCULATE( DISTINCTCOUNT(Entities[CustomerID]), FILTER( Entities, [ActivePolicyCount] = 1 ) )Regards
sanalytics
Bibiano_Geraldo
Super User
1 year agoHi millercj ,
Please try the bellow updated DAX:
CustomersWithOneActivePolicy =
CALCULATE(
COUNTROWS(Entities),
FILTER(
Entities,
CALCULATE(
COUNTA(Policies[UID], Policies[Active] = TRUE(), PolicyLines[DisplayName] <> "Annuity")
) = 1
)
)