Forum Discussion

ELW's avatar
ELW
Icon for Advocate II rankAdvocate II
4 years ago
Solved

DAX Distinct dates, filtered before today

I have a table with dates in it.  I want to create a new table from a unique list of dates, but have it filtered for dates before today.  I am able to get the new table with = DISTINCT('Date'[Date]) ...
  • daXtreme's avatar
    4 years ago
    [Your Table] =
    var tooday = TODAY()
    return
      FILTER(
        DISTINCT( T[Date] ),
        T[Date] <= tooday
      )