Forum Discussion

EricH77's avatar
EricH77
Frequent Visitor
2 years ago
Solved

Slicer that excludes current month

I have a slicer currently that is based on client contract end dates.  We have contracts that have end dates going all the way into 2050.  I want to let my team use this slicer but limit it to only s...
  • PijushRoy's avatar
    2 years ago

    Hi EricH77 

    Please a create a measure

     

    Till Current Month = 
    VAR _CurrentMonth = Month(Today())
    VAR _ContractEndMonth = Month('YourCalenderTable'[Date])
    RETURN
    If(
    _CurrentMonth < _ContractEndMonth, 1, 0
    )

     

     

    Bring this measure in Slicer filter page and set the value as 1.


    Let me know if that works for you


    If your requirement is solved, please mark THIS ANSWER as SOLUTION ✔️ and help other users find the solution quickly. Please hit the Thumbs Up 👍 button if this comment helps you.

    Thanks
    Pijush
    Linkedin