Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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 show everything that is prior to the current month. I know I can manually set the slicer to exclude the current month but I don't want to have to update this manually every time we enter a new month. How can I create a slicer that only shows contracts with end dates prior to the current month?
Thanks
Solved! Go to Solution.
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
Proud to be a Super User! | |
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
Proud to be a Super User! | |
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).
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
58 | |
56 | |
56 | |
38 | |
29 |
User | Count |
---|---|
75 | |
62 | |
45 | |
40 | |
39 |