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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Last 12 Months of Data

Hello,

In my Sales report, I need to show last 12 months of data.

Data is refreshed at the start of each month and the last months data is added (e.g., in early June, we will add May data).  

How do i automatically add the new month (May in this case) in the sales bar chart and remove May 2022 data? 

I am trying a measure Last 12 Months = EOMONTH(Today(), -12) - have not figured out how to do a comparison to the date in the date table.  

Also, I do have a date slicer, in case the user wants to see than 12 or more than 12 months.

Appreciate your suggestions!

Thanks,

Pav

2 REPLIES 2
Anonymous
Not applicable

Thanks Wilson.  

But that does not let the user select less or more months from a month slicer.

Wilson_
Super User
Super User

Hello PavBid,

 

You can accomplish this from the filter tab; simply add a relative date filter for the last twelve months.


----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.