Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
azeenk
Helper I
Helper I

I Need help on creating DAX or any other approach for getting last 3 months separately dynamically

Dear Team,

 

I am currently developing three dynamic donut charts in Power BI to display data for the last three completed months. These charts will automatically update each month. For example:

  • April: Charts will display data for January, February, and March.

  • May: Charts will update to show February, March, and April.

Each chart will be filtered to its respective month, formatted as MMM_yyyy (e.g., Jan_2025), ensuring consistency and clarity.

Please let me know if you have any preferences or additional requirements for these visuals.

 

Best regards,
Hk

1 ACCEPTED SOLUTION
v-sdhruv
Community Support
Community Support

Hi @azeenk ,
You can make use of relative date slicer or relative date filter in Power BI for this.
This way you can achieve your results dynamically.

https://learn.microsoft.com/en-us/power-bi/visuals/desktop-slicer-filter-date-range

Or you can simply apply visual level filter for these two charts.
1. April : Apply Jan,Feb and March
2. May : Apply Feb, march, April

Hope this helps!

View solution in original post

4 REPLIES 4
v-sdhruv
Community Support
Community Support

Hi @azeenk ,
Just wanted to check if you had the opportunity to review the suggestion provided?
If the response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank You

v-sdhruv
Community Support
Community Support

Hi @azeenk ,
Just wanted to check if you had the opportunity to review the suggestion provided?
If the response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank You

v-sdhruv
Community Support
Community Support

Hi @azeenk ,
Just wanted to check if you had the opportunity to review the suggestion provided?
If the response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank You

v-sdhruv
Community Support
Community Support

Hi @azeenk ,
You can make use of relative date slicer or relative date filter in Power BI for this.
This way you can achieve your results dynamically.

https://learn.microsoft.com/en-us/power-bi/visuals/desktop-slicer-filter-date-range

Or you can simply apply visual level filter for these two charts.
1. April : Apply Jan,Feb and March
2. May : Apply Feb, march, April

Hope this helps!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.