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.
So my dashboard has a column filter that is "Month", and the data inside is text which reads:
The dashboard is only supposed to show 3 months at a time so what we've been doing is just manually changing the month filter to the most recent 3 months. I'm being asked to create a Relative Month/Date filter so that it will automatically update to the last 3 months but I can't do it since the month column is in Text format and if I change it to a Date format or use a DATEVALUE function it messes up the whole dashboard. How do I create a relative month filter or at least automate it to just keep showing the most recent 3 month data?
Solved! Go to Solution.
Hi @rouelandrew ,
Here some steps that I want to share, you can check them if they suitable for your requirement.
Here is my test data:
Creaet a calculate column
Date Type = DATE(LEFT('Table'[Date], 4), RIGHT(LEFT('Table'[Date], 7), 2), 1)
Apply this to the filter
The attached pbix is the result in import mode, but you can still use it in direct query mode after some testing.
Best regards,
Albert He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @rouelandrew ,
Here some steps that I want to share, you can check them if they suitable for your requirement.
Here is my test data:
Creaet a calculate column
Date Type = DATE(LEFT('Table'[Date], 4), RIGHT(LEFT('Table'[Date], 7), 2), 1)
Apply this to the filter
The attached pbix is the result in import mode, but you can still use it in direct query mode after some testing.
Best regards,
Albert He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @rouelandrew ,
I would in the query editor add another column that shows the date equivalent your month column.
I would then add a calculated to identify whether a period/month is within the last 3 months
L3M =
ABS ( DATEDIFF ( MAX ( 'Table'[Date] ), 'Table'[Date], MONTH ) - 1 ) <= 3
It gives me the below error if I follow these steps
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 |
---|---|
80 | |
76 | |
60 | |
36 | |
33 |
User | Count |
---|---|
91 | |
60 | |
59 | |
49 | |
45 |