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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.