Forum Discussion

ThaddeusB's avatar
ThaddeusB
Helper I
7 years ago
Solved

Filter for active within time range

I have a set of data like (plus additional columns:

 

ClientEntry DateExit Date
2053/24/20183/26/2018
20612/9/20097/26/2017
20711/10/201712/21/2017
20810/29/201711/1/2017
2084/10/20185/11/2018
2085/20/20187/17/2018
2094/25/20177/18/2018
2104/17/20184/18/2018
21110/25/201710/26/2017

 

I would like to filter the data for people active in a selectable time frame.  For example, selecting the range 10/1/17-12/1/18 should include 207,208, 209, & 211.  Formally, the rule would be [Entry Date]<=filter end AND [Exit Date]>= filter start.

 

I set up a Calendar table containing the days in the date range and made a slicer with that.  I am struggling with setting up the measure to filter my visualizations.  Any suggestions?

3 Replies

  • Hi,

     

    The result should also include 205 and 210.  You may download my PBI file from here.

     

    Hope this helps.

     

    • ThaddeusB's avatar
      ThaddeusB
      Helper 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.