Indexing two powerpivot colums - both expresed as '% of clumn total'

M1donne

New Member
Joined
Apr 7, 2014
Messages
44
Hi all

I have asked this before but still unable to get a solution...

I have a Powerpivot Dashboard reporting two columns, sales and stock by Vendor with both sales and stock expressed as '% of column total' in Value Field Settings

I'm tying to create a calculation to divide the sales % by the stock % to give an INDEX (where >1 is positive and <1 is negative)

Since the pivot table reports both the sales column totaling 100% and the stock column totaling 100% I assumed it would be as simple as putting in a calculated field but the option is greyed out in POWERPIVOT TOOLS - OPTIONS - FIELDS, ITEMS AND SETS

Does anyone know a calculation to achieve this (DAX?)

I did wonder whether I could create a calculated field in the main DATA body but I don't think that would be dynamic whereas the Pivottable is.

Any assistance would be gratefully appreciated.

Regards
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Ya, fancy formatting tricks are just NOT going to help you. You have to do this in straight dax, and it's a bit of a pain since there is no way to generically write a "percent of parent" measure. Depending on how many flavors of pivots, you end up with "% of Category", "% of Sub-Category", "% of Vendor", etc.

If you have a "real" percentage measure...

MyPercent := DIVIDE( SUM(MyTable[MyColumn]) , CALCULATE( SUM(MyTable[MyColumn]) , ALL(MyTable[MyColumn]) ) )

Then you can certainly divide 2 measures together...
 
Upvote 0

Forum statistics

Threads
1,224,034
Messages
6,176,000
Members
452,695
Latest member
Alhassan

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