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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

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

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

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
May PBI 25 Carousel

Power BI Monthly Update - May 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

May 2025 Monthly Update

Fabric Community Update - May 2025

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