Margin percentage as row in PowerPivot

fa909

New Member
Joined
Oct 9, 2017
Messages
3
I am building an Income Statement using PowerPivot. I have calculated rows for Gross Margin and Net Income. I want to add a row for Gross Margin %. i.e.:

I currently have as a running total: Revenue - Costs = Gross Margin
I want to add the following Percentage as a row: Gross Margin % = Gross Margin / Revenue.
Your help is much appreciated.
Best
Farah
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Well Margin as a % of gross sales is simply

= divide([Gross Margin],[Total Sales])

of course [Total Sales] has to return the correct value for this to work regardless of where it is in a pivot table. I suggest setting up your pivot table first and then add [Gross Margin] and [Total Sales] to the pivot. For the % to work, the [Gross Margin] must change for each row in the pivot, but the [Total Sales] must always return the [Total Sales]. it will likely be something like this

=CALCULATE(sum(table[value]),table[Category]="Sales") or something like that.
 
Upvote 0

Forum statistics

Threads
1,215,077
Messages
6,122,995
Members
449,094
Latest member
masterms

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