Cumulative Average Help! SUMMARIZE function?

azn1684

New Member
Joined
Dec 10, 2013
Messages
1
Hi All,

I'm relatively new to Excel/PowerPivot/DAX etc., and I could really use some help. I'm trying to create a new measure using DAX to calculate the cumulative weekly average based on various product groupings. I tried using the formula below, however, it only shows the total cumulative weekly average for all the rows as show below.

Is there a way to use the SUMMARIZE function to get the cumulative weekly totals for each row? Any help would be most appreciated. Thanks in advance and Happy Holidays!

CALCULATE(SUM( 'RawData'[Dollar Sales Normalized] )/DISTINCTCOUNT('RawData'[WeekBeginning]),
FILTER(
ALLSELECTED( 'RawData') ,
'RawData'[WeekBeginning] <= MAX( 'RawData'[WeekBeginning] )
)
)

[TABLE="width: 643"]
<tbody>[TR]
[TD]Row Labels[/TD]
[TD="align: right"]10/27[/TD]
[TD="align: right"]11/3[/TD]
[TD="align: right"]11/10[/TD]
[TD="align: right"]11/17[/TD]
[TD="align: right"]11/24[/TD]
[TD="align: right"]12/1[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]$5,029[/TD]
[TD="align: right"]$4,724[/TD]
[TD="align: right"]$4,509[/TD]
[TD="align: right"]$4,296[/TD]
[TD="align: right"]$4,209[/TD]
[TD="align: right"]$4,086[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD="align: right"]$5,029[/TD]
[TD="align: right"]$4,724[/TD]
[TD="align: right"]$4,509[/TD]
[TD="align: right"]$4,296[/TD]
[TD="align: right"]$4,209[/TD]
[TD="align: right"]$4,086[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD="align: right"]$5,029[/TD]
[TD="align: right"]$4,724[/TD]
[TD="align: right"]$4,509[/TD]
[TD="align: right"]$4,296[/TD]
[TD="align: right"]$4,209[/TD]
[TD="align: right"]$4,086[/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD="align: right"]$5,029[/TD]
[TD="align: right"]$4,724[/TD]
[TD="align: right"]$4,509[/TD]
[TD="align: right"]$4,296[/TD]
[TD="align: right"]$4,209[/TD]
[TD="align: right"]$4,086[/TD]
[/TR]
[TR]
[TD]Grand Total[/TD]
[TD="align: right"]$5,029[/TD]
[TD="align: right"]$4,724[/TD]
[TD="align: right"]$4,509[/TD]
[TD="align: right"]$4,296[/TD]
[TD="align: right"]$4,209[/TD]
[TD="align: right"]$4,086[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Forum statistics

Threads
1,223,970
Messages
6,175,726
Members
452,667
Latest member
vanessavalentino83

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top