Forum Discussion
elinevans
Helper I
5 years agoActive Clients Multiple Services
Here is an example of the type the data I'm using. Each client can have more than 1 service and I want to find clients active in a service within a time period (say between date x and date y...
- Anonymous5 years ago
[# Active Clients] = var MinReportingPeriod = MIN( Datetable[Date] ), var MaxReportingPeriod = MAX( Datetable[Date] ) var Result = COUNTROWS( SUMMARIZE( CALCULATETABLE( ServiceInfo, KEEPFILTERS( ServiceInfo[Start Date] <= MaxReportingPeriod ), KEEPFILTERS( MinReportingPeriod <= ServiceInfo[End Date] ) ), ServiceInfo[Client Ref] ) ) return Result
Anonymous
5 years agoNot applicable
I'm talking about my measure. Did you see it? 'Cause I have a feeling you didn't...
elinevans
Helper I
5 years agoApologies for wasting your time. I didn't apply it correctly the first time and didn't realise you could add it to a filter plane as a count. Thank you for your help!!