Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Filter based on date

Hello, I have a set of data with subscriptions and there I have a column with date & time that shows when the subscription last was used.   The date column/data originally showed date and time but ...
  • AllisonKennedy's avatar
    3 years ago

    You could create a Measure similar to the below and filter for "unused" only

    Inactive Filter =
    VAR _LastDate = MAX('Table'[Date]) + 0
    VAR _CutoffDays = 365
    VAR _DaysSinceLastUsed = DATEDIFF( _LastDate, TODAY(), DAY)
    RETURN
    IF(_DaysSinceLastUsed > _CutoffDays, "Unused")