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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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