Possible to create a Cumulative Sales Measure in DAX

thomdeluca

New Member
Joined
Sep 27, 2008
Messages
10
New PowerPivot user question.

Below is a screen capture of a Pivot of some sample data.

What I'd like to do is to create a new Measure (3 really that accomplish the same result) which will calculate a cumulative sales value. Said differenty, the 4/19/14 column would have the existing measure, "Total Sales" which is sales for that one week, and a NEW measure, "Cumulative Sales" which is the sum of 4/19/14 and 4/12/14. This would continue "building" into perpetuity.

The end goal is to create a bar-line chart showing bars for each week, and a corresponding line, plotting the Cumulative Sales to show a "sales build".

I do appreciate any help!


[TABLE="width: 662"]
<colgroup><col><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD]ItemName[/TD]
[TD]Values[/TD]
[TD] 4/12/14[/TD]
[TD] 4/19/14[/TD]
[TD] 4/26/14[/TD]
[TD] 5/3/20[/TD]
[TD] 5/10/14[/TD]
[/TR]
[TR]
[TD]Orange - 2Ct[/TD]
[TD]#StoresScanning[/TD]
[TD="align: right"]310[/TD]
[TD="align: right"]404[/TD]
[TD="align: right"]514[/TD]
[TD="align: right"]559[/TD]
[TD="align: right"]1,606[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]Total Sales[/TD]
[TD="align: right"]$1,195[/TD]
[TD="align: right"]$1,550[/TD]
[TD="align: right"]$2,201[/TD]
[TD="align: right"]$2,171[/TD]
[TD="align: right"]$6,606[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]Total Units[/TD]
[TD="align: right"]338[/TD]
[TD="align: right"]438[/TD]
[TD="align: right"]692[/TD]
[TD="align: right"]619[/TD]
[TD="align: right"]2,161[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]Total Forecast Units[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]50[/TD]
[TD="align: right"]200[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]200[/TD]
[/TR]
[TR]
[TD]Orange - 10Ct[/TD]
[TD]#StoresScanning[/TD]
[TD="align: right"]165[/TD]
[TD="align: right"]238[/TD]
[TD="align: right"]286[/TD]
[TD="align: right"]349[/TD]
[TD="align: right"]387[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]Total Sales[/TD]
[TD="align: right"]$2,232[/TD]
[TD="align: right"]$3,346[/TD]
[TD="align: right"]$4,249[/TD]
[TD="align: right"]$4,812[/TD]
[TD="align: right"]$5,370[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]Total Units[/TD]
[TD="align: right"]183[/TD]
[TD="align: right"]276[/TD]
[TD="align: right"]391[/TD]
[TD="align: right"]394[/TD]
[TD="align: right"]442[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]Total Forecast Units[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]25[/TD]
[TD="align: right"]50[/TD]
[TD="align: right"]75[/TD]
[TD="align: right"]100[/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,996
Messages
6,175,857
Members
452,676
Latest member
woodyp

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