Forum Discussion
Slicer that excludes current month
- 2 years ago
Hi EricH77
Please a create a measureTill 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
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
- Decal2 years ago
Helper I
Is there a way to do this where we allow the user to decide whether they want to filter the current month out or not? Sometimes for executive reporting they only want to go up to the last month, but may want to see current month for their own tracking.
Note: I can do this by adding a column in my calendar table. I was trying to figure out a way to do it without adding a column and instead using a measure (possibly with a combination of a new table).