Forum Discussion

JSher's avatar
JSher
Frequent Visitor
5 years ago
Solved

Using FILTER to filter a table based on a SELECTEDVALUE(date) does not work

I have a page where I have a date from a table(Table1) selected from a drillthrough.   I create a measure:   SelectedDate = SELECTEDVALUE(Table[Date])     This measure when inserted into a c...
  • Samarth_18's avatar
    Samarth_18
    5 years ago

    Hi JSher ,

     

    Can you try to create a measure with below code and use it as filter on your table visual.

     

    FilteredTable = if(max(Table2[Date2])>SelectedDate,1,0)

    or 

    FilteredTable = if(format(max(Table2[Date2]),"mm/dd/yyyy")>format(SelectedDate,"mm/dd/yyyy",1,0))