Forum Discussion

elinevans's avatar
elinevans
Helper I
5 years ago
Solved

Active Client ID

  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...
  • Samarth_18's avatar
    5 years ago

    Hi elinevans ,

     

    You can create a measure with  below code and use it as filter on your visual

    filter_data = IF(MAX(ServiceInfo[StartDate]) <= MAX(date_table[Date]) && MAX(ServiceInfo[EndDate]) >= MIN(Date_Table[Date]),1,0)

    Output:-

    Thanks