Forum Discussion

HamidBee's avatar
HamidBee
Power Participant
4 years ago
Solved

How do I use a date filter for a measure?

I am trying to use a date filter for a simple measure. I have data for various days and months between 2020 and 2021 in a table. I'd like to apply a filter for only the year 2020. I already have one ...
  • littlemojopuppy's avatar
    4 years ago

    Hi HamidBee.

     

    I'm assuming that you have a date table in your data model and that it is marked appropriately.  If so, this should be fairly easy with either the DATESBETWEEN or DATESINPERIOD functions.  Pick a function and insert the appropriate start and end dates as parameters.  Hope this helps!