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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
sentsara
Helper II
Helper II

Filtering last 3 months data in PowerBI

Hi,

Right now,I manually filter the last 3 months from the visual filter "DayNumberOfMonth" =April,May and June..

I need dyanamically the last 3 months should be filtered every month.how this can be done?

VisualLevel FilterVisualLevel Filter

 

 

 

2 ACCEPTED SOLUTIONS
Phil_Seamark
Microsoft Employee
Microsoft Employee

Hi @sentsara

 

If you add a DateTime field to the filter you can use the Relative date filtering option and set your criteria as preferred.

 

image.png


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

Anonymous
Not applicable

Hi @sentsara, that was my issue until i've found out about relative filtering in slicers.

 

For the last three months or any other time period, instead of using filters, add a date slicer into your report, select carat in upper right of the slicer and select relative from dropdwon. The rest steps are pretty evident, choose last three months and that's done!

 

You can find the whole text and guideline here:

 

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

 

Hope this helps.

 

Ehsan

View solution in original post

7 REPLIES 7
Anonymous
Not applicable

Hi @sentsara, that was my issue until i've found out about relative filtering in slicers.

 

For the last three months or any other time period, instead of using filters, add a date slicer into your report, select carat in upper right of the slicer and select relative from dropdwon. The rest steps are pretty evident, choose last three months and that's done!

 

You can find the whole text and guideline here:

 

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

 

Hope this helps.

 

Ehsan

Thanks kingdom.

Phil_Seamark
Microsoft Employee
Microsoft Employee

Hi @sentsara

 

If you add a DateTime field to the filter you can use the Relative date filtering option and set your criteria as preferred.

 

image.png


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Hi @Phil_Seamark ,

Suppose If I have only month column and don't have date column in that case how can we achieve this scenario.
I have month column, Month number and year column with me.

 

Thanks,

Arvind

Hi Phil!
I have a line graph with this filter, but I also need that if the user wants to look for other date, could do it. For example look for the same month but on 2022.

But this will be filter all data of report

Thanks phil got it.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.