Forum Discussion
ThaddeusB
7 years agoHelper I
Filter for active within time range
I have a set of data like (plus additional columns: Client Entry Date Exit Date 205 3/24/2018 3/26/2018 206 12/9/2009 7/26/2017 207 11/10/2017 12/21/2017 208 10/29/2017 1...
- 7 years ago
try something on these lines
See file attached as well
Then you can use the MEASURE as a visual filter
Measure = COUNTROWS ( FILTER ( table1, Table1[Entry Date] >= MIN ( 'Calendar'[Date] ) && Table1[Exit Date] <= MAX ( 'Calendar'[Date] ) ) )
Ashish_Mathur
7 years agoSuper User
Hi,
The result should also include 205 and 210. You may download my PBI file from here.
Hope this helps.
ThaddeusB
7 years agoHelper I
Thank you both. I had set up the filter very similarly, but was not getting the expected results. My problem was that I was putting the measure ONLY in the visual filters of a pie chart and using count(client) for the values. Putting count(measure) in the values section instead of count(client) fixed it.