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
PetrK
Helper II
Helper II

Max of sum of sales per week

Hi,
please for explanation how to write dax formula for:

I need get max value from sums of sold products per week.
This final value will be used as max value of y-axis for combo chart.
I have several salled product per week but it is written sale by sale. It should be clear from the tabel.

 

dateweeksold productssold products per weekmax of week sell
01.01.20231530103
01.01.20231230
03.01.20231630
04.01.20231130
05.01.20231530
05.01.20231330
07.01.20231830
08.01.202325103
09.01.202324103
12.01.202322103
12.01.202326103
12.01.2023282103
13.01.202321103
14.01.202323103
16.01.20233684
16.01.20233884
17.01.20233184
18.01.202335584
19.01.20233384
20.01.202331184

PetrK_0-1701880661534.png

 

1 ACCEPTED SOLUTION
ThxAlot
Super User
Super User

For fun only, a showcase of power of Excel formulas, week column isn't necessary.

ThxAlot_2-1701887911429.png

 

Of coz, DAX is born for such kind of scenario,

ThxAlot_3-1701887977427.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LeanAndPractise(Everyday)


)



View solution in original post

2 REPLIES 2
PetrK
Helper II
Helper II

thank you, it is great.

ThxAlot
Super User
Super User

For fun only, a showcase of power of Excel formulas, week column isn't necessary.

ThxAlot_2-1701887911429.png

 

Of coz, DAX is born for such kind of scenario,

ThxAlot_3-1701887977427.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LeanAndPractise(Everyday)


)



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.