Running calculations

rileybloke

New Member
Joined
Feb 7, 2013
Messages
43
Hi,
I have powerpivot model that includes 4 tables of data.

1. Product Item Key table

  • Item Number
  • Stock on hand (now)

2. Date Key Table

  • Year
  • Week Number

3. Customer Order Table

  • Item Number
  • Year
  • Week
  • Order Quantity

4. Supplier Delieries Table

  • Item Number
  • Year
  • Week
  • Delivery Quantity

I need help with a dax calculation or measure to sum the order quantities for each item for each year/week, and the same for supplier deliveries.
And then present it on a Pivot table running across years/weeks, but as a running calculation starting from the STOCK OH(table1), and deducting by customer order, and adding supplier orders, this will then show if any items will become out of stock.

Ive attached what I have already done, but I need to insert another column showing the running total using the running calculation above.
Any advise or help would be great, ive been battling with it for ages, reading forums, watching youtube vids etc.
232145
 
I have applied the same measure to the supplier delivery, and can calculate between measures. I am looking at Javiers running totals formula, but cant see how I could introduce the starting inventory figure (ACTUAL OH) into the formula to create a running calculation across the weeks :-( Sorry I ran a ground again. In every calculation or measure I attempt it errors that Actual OH from ITEM_KEY is out of context. Probably something fundemental.
 
Upvote 0

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

Forum statistics

Threads
1,224,905
Messages
6,181,662
Members
453,059
Latest member
jkevin

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