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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.