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
ajohnso2
Solution Supplier
1 year agoIf your Policies[Active] column is not a boolean type you should change to Policies[Active] = 1
Either way the dax should work now, for multiple filters use the required operator && (and) || (or) etc not ,
ActivePolicyCount =
CALCULATE(
COUNTA(Policies[UID]),
Policies[Active] = TRUE() && PolicyLines[DisplayName]<>"Annuity"
)
If this helps can i get some free insurance? 😄