% of total help

bondra76

New Member
Joined
May 6, 2012
Messages
14
Could use some help – I tried to simplify this down to explain

I am using powerpivot and have three different types of fruits. I have set up measures to total the fruit, but I need to create a calculated column that determines what % of the quantity of each fruit is on each line

The bolded valyes are what I am looking to accomplish. For example, in the first line the quantity of apples is 2, which makes up 50% of the total number of apples.

Is this possible to achieve this with a formula?

[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Fruit[/TD]
[TD]Qty[/TD]
[TD]% of Fruit[/TD]
[/TR]
[TR]
[TD]Apples[/TD]
[TD]2[/TD]
[TD]50%[/TD]
[/TR]
[TR]
[TD]Oranges[/TD]
[TD]1[/TD]
[TD]100%[/TD]
[/TR]
[TR]
[TD]Pears[/TD]
[TD]1[/TD]
[TD]25%[/TD]
[/TR]
[TR]
[TD]Pears[/TD]
[TD]3[/TD]
[TD]75%[/TD]
[/TR]
[TR]
[TD]Apples[/TD]
[TD]2[/TD]
[TD]50%[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Total Apples:4[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Total Oranges: 1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Total Pears: 4[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Code:
=B3/RIGHT(INDIRECT(ADDRESS(MIN(IF(NOT(ISERROR(FIND(A3,$A$9:$A$11,1))),ROW($A$9:$A$11),"")),1)),1)
Entered with CTRL+SHIF+ENTER
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,157
Members
453,021
Latest member
Justyna P

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