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
viltxes14
Helper I
Helper I

Shadow chart - Total per month and then min max

Hi, I think this might be easy: 

 

I need a chart showing the current year monthly total and I want to have a "shadow" part in the chart showing the max and min of the last 5 years to see how this year is going. 

So I think I need to calculate the total per month and then the 5 year max and min for each month of the year but I cannot figure out the measure. 

 

thanks!

 
 
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@viltxes14 , refer if this can help

minx(summarize(Table,Table[Month-Year],"_1",sum(Table[Value])),[_1])

 

maxx(summarize(Table,Table[Month-Year],"_1",sum(Table[Value])),[_1])

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

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@viltxes14 , refer if this can help

minx(summarize(Table,Table[Month-Year],"_1",sum(Table[Value])),[_1])

 

maxx(summarize(Table,Table[Month-Year],"_1",sum(Table[Value])),[_1])

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

Hi Amit, 

 

It works fine with the total per month. Do you know how can I do it if I need the daily average per month?

 

thanks a lot, 

 

kind regards, 

Thanks! it works perfect!!!

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.