Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Filter on record that has an differend date

Hi all,   I was wondering if there is an way to achieve to following: - In my raw data I've got several customers, statusses and open_dates - In the reports I want to select one of the customers ...
  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi Anonymous ,

     

    Create a measure as below then add it to visual filter.

    Measure = 
    var _min = CALCULATE(MIN('Table'[open date]),FILTER(ALLEXCEPT('Table','Table'[customer]),'Table'[status]<>"closed"))
    return
    IF(SELECTEDVALUE('Table'[open date])>=_min,1,0)

     

    Best Regards,

    Jay