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.
Hi everyone,
I have a calendar Table containing my dates and some calculated columns that allows me to easily filter by dates in DAX Measures. See table below (my dates are contiguous of course, it is just a short example) where the TODAY date would be 15/10/2024
Dates | Last Month | Last 3 months | Last 12 months |
01/01/2024 | NO | NO | YES |
01/04/2024 | NO | NO | YES |
01/07/2024 | NO | YES | YES |
01/10/2024 | YES | YES | YES |
This allows me to basically do measures like SALES LAST 3 MONTHS = CALCULATE(Sales, filter LAST 3 Months = "YES")
Now, I would like the user to be able to use a slicer where he potentially could choose himself how to filter the sales:
So if my table would be:
01/08/2024 | 01/09/2024 | 01/10/2024 | |
Product A | |||
Product B |
The slicer would need the user to choose:
Last Month => the behaviour of the table should show only 01/10/2024
Last 3 Months => the behaviour of the table should show only 01/10/2024 - 01/09/24 - 01/08/24
and so on
But when using this in a parameter it OF COURSE does not work because the slicer only contains the column.
Is there a way in the parameter itself to add the filter condition.
Current PARAMETER:
Solved! Go to Solution.
For now I solved it by adding multiple slicers to my page where the user can choose one he wants and SELECT it
For now I solved it by adding multiple slicers to my page where the user can choose one he wants and SELECT it
Take a look at this blog: https://radacad.com/power-bi-from-and-to-date-filtering-with-one-slicer
See if this could solve your problem.
Proud to be a Super User!
Hi,
If I understood well, you can use parameter with all your measures for each period.
For example:
Measure_Parameter =
Proud to be a Super User!
Hi Andrade,
That is supposing I want only the sales. Actually whatever the measure would be in my table i would like to filter my dates.
So in essence if we imagine a matrix table where the dates are in the column.
The slicer should ONLY filter these dates.
Not sure that is clear
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 |
---|---|
72 | |
71 | |
57 | |
38 | |
36 |
User | Count |
---|---|
81 | |
67 | |
61 | |
46 | |
45 |