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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

How to make table display yearly amount ?

Hi All

 

I like to modify the below 6 month rolling to yearly rolling , i try to change the 24 to 12 , it does not work .

 

6 Month new =
var _max = maxx(ALLSELECTED('Date Auto'), 'Date Auto'[Date])
var _min = date(YEAR(_max),MONTH(_max)-24,1)

return
Calculate([Sales], FILTER('Date', 'Date'[Date] <=_max && 'Date'[Date] >=_min))

Paulyeo11_0-1603787650416.png

 

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@Anonymous 

maybe you can update the _min part.

 

var _min = edate(_max,-12)

 

 





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

Proud to be a Super User!




View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , yes, it should. create a visual with month year near to it and check

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
ryan_mayu
Super User
Super User

@Anonymous 

maybe you can update the _min part.

 

var _min = edate(_max,-12)

 

 





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

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.