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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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

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

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.