% 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

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
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,223,894
Messages
6,175,252
Members
452,623
Latest member
Techenthusiast

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