Forum Discussion
bcardenas
6 years agoFrequent Visitor
Distinct Count filter with sum
Hello, I am a newbie trying to count Lenders w/ 4 or more certs for a year. I am trying this formula but it does not filter >3, it just gives me a straight count. Active Lenders 1 yr = CALCULA...
- 6 years ago
bcardenas Sorry, I didn't see that you have posted the data, you can try this:
Total Certificate = SUM ( Certificates[certified] )Active Lenders 1 yr = COUNTROWS ( FILTER ( SUMMARIZE ( Certificates, Certificates[InstitutionID], 'Date'[Year] ), [Total Certificate] > 3 ) )Model
AntrikshSharma
Community Champion
6 years agobcardenas Try this:
Active Lenders 1 yr =
CALCULATE (
DISTINCTCOUNT ( Certificates[institutionID] ),
FILTER (
ALL ( Certificates ),
CALCULATE ( SUM ( Certificates[Certified] ) ) > 3
)
)
- bcardenas6 years agoFrequent Visitor
AntrikshSharma when I try this solution I do not get an error but the measure is blank when pulled into a report.
- AntrikshSharma6 years ago
Community Champion
bcardenas Sorry, I didn't see that you have posted the data, you can try this:
Total Certificate = SUM ( Certificates[certified] )Active Lenders 1 yr = COUNTROWS ( FILTER ( SUMMARIZE ( Certificates, Certificates[InstitutionID], 'Date'[Year] ), [Total Certificate] > 3 ) )Model
- bcardenas6 years agoFrequent Visitor
AntrikshSharma Much thanks, this is exactly what I needed.