Calculated Item on Power Pivot

thiagoortiz

New Member
Joined
May 4, 2015
Messages
1
Dear all,

I'm a newbie about Power Pivot discovering this powerful tool today when I was searching a solution for my "big" problem...

I need to build a pivot table (Stock Equation template), basically is a time-table below:

[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Jan[/TD]
[TD]Feb[/TD]
[TD]Mar[/TD]
[TD]Apr[/TD]
[/TR]
[TR]
[TD]Consumption[/TD]
[TD][/TD]
[TD]4[/TD]
[TD]3[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Stock[/TD]
[TD]10[/TD]
[TD]6[/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Days of Stock[/TD]
[TD]90[/TD]
[TD]60[/TD]
[TD]30[/TD]
[TD]0[/TD]
[/TR]
</tbody>[/TABLE]

Where "Consumption", "Stock" are data of a table and "Days of Stock" is a formula: "Jan Stk" - "Feb Cons" - "Mar Cons" - "Apr Cons".

To complicate the exercise there are some row labels more as segment, product type, etc. that a user can add/remove of this pivot table.

So I need this formula becomes variant, considering the added/removed row labels.

I thinked to do this in VBA, but excel don't cross rows and columns in a calculated item of pivot table.

Someone could help me? Any suggestion how to solve it?
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
So, generally you would just place the filters on "Slicers", and let the user just click the slicer and <poof>... it just works. I suspect writing the measure (calculated field) for Days of Stock might be interesting, but... in general, everything you are describing is pretty straight forward for power pivot.

If you don't have one, I suspect you will want a separate date table, btw. See Power Pivot Date Table | Power Pivot | Tiny Lizard
 
Upvote 0

Forum statistics

Threads
1,224,091
Messages
6,176,294
Members
452,719
Latest member
Boonchai Charoenek

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