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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
PavBid
Regular Visitor

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
PavBid
Regular Visitor

Thanks Wilson.  

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

Wilson_
Solution Sage
Solution Sage

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?)

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors