Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Date filter across multiple different date fields

Hi,   I have data in a table like below:    Unique ID Status 1 Start Date Status 1 End Date Status 2 End Date Status 3 End Date Status 1 Time Status 2 Time Status 3 Time AA 4/29/202...
  • V-lianl-msft's avatar
    6 years ago

    Hi Anonymous ,

     

    Create an unrelated calendar table as slicer then create measure like this:

    Count_1 = CALCULATE(COUNT('Table'[Unique ID]),FILTER('Table','Table'[Status 1 End Date] in VALUES('Table 2'[Date])&&'Table'[Status 1 Start Date]<=MAX('Table 2'[Date])))

    Sample .pbix 

     

    Best Regards,
    Liang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.