Forum Discussion

72_tam's avatar
72_tam
Regular Visitor
2 years ago
Solved

need help with limiting date range

I have a dashboard with work orders that are scheduled, closed and a running total by fiscal year...a 10 year trend.  How can I limit the trend to only show me scheduled work to current fiscal year a...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi  72_tam ,

    I created some data:

    Here are the steps you can follow:

    1. Create measure.

    Flag =
    var _today=TODAY()
    return
    IF(
        MAX('Table'[Date].[Year])>=YEAR(_today)-10&& MAX('Table'[Date].[Year])<=YEAR(_today),1,0)

    2. Place [Flag]in Filters, set is=1, apply filter.

    3. Result:

     

    Best Regards,

    Liu Yang

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