% 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?

FruitQty% of Fruit
Apples250%
Oranges1100%
Pears125%
Pears375%
Apples250%
Total Apples:4
Total Oranges: 1
Total Pears: 4

<tbody>
</tbody>
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
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,214,386
Messages
6,119,217
Members
448,876
Latest member
Solitario

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