thomdeluca
New Member
- Joined
- Sep 27, 2008
- Messages
- 10
PowerPivot newbie question.
[TABLE="width: 743"]
<tbody>[TR]
[TD]What is the correct syntax for the measure to calculate the 'share of parent' as in the sample below ("Share of Category/Segment")?
Want to calculate from the lowest level, "Product" Sales as a percent of the Segment Level, and then Segment as a percent of Category?[/TD]
[/TR]
[TR]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 743"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Total
Sales[/TD]
[TD][/TD]
[TD]Share
of
Category/
Segment[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Category[/TD]
[TD][/TD]
[TD]Total Vitamins[/TD]
[TD][/TD]
[TD] $ 1,029,361[/TD]
[TD][/TD]
[TD]100%[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Segment[/TD]
[TD][/TD]
[TD]Adult Multivitamins[/TD]
[TD][/TD]
[TD] $ 566,149[/TD]
[TD][/TD]
[TD]55%[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Product[/TD]
[TD][/TD]
[TD]Product 1[/TD]
[TD][/TD]
[TD] $ 396,304[/TD]
[TD][/TD]
[TD]70%[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Product[/TD]
[TD][/TD]
[TD]Product 2[/TD]
[TD][/TD]
[TD] $ 113,230[/TD]
[TD][/TD]
[TD]20%[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Product[/TD]
[TD][/TD]
[TD]Product 3[/TD]
[TD][/TD]
[TD] $ 56,615[/TD]
[TD][/TD]
[TD]10%[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Segment[/TD]
[TD][/TD]
[TD]Calcium[/TD]
[TD][/TD]
[TD] $ 257,340[/TD]
[TD][/TD]
[TD]25%[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Product[/TD]
[TD][/TD]
[TD]Product 1[/TD]
[TD][/TD]
[TD] $ 141,537[/TD]
[TD][/TD]
[TD]55%[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Product[/TD]
[TD][/TD]
[TD]Product 2[/TD]
[TD][/TD]
[TD] $ 64,335[/TD]
[TD][/TD]
[TD]25%[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Product[/TD]
[TD][/TD]
[TD]Product 3[/TD]
[TD][/TD]
[TD] $ 51,468[/TD]
[TD][/TD]
[TD]20%[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Segment[/TD]
[TD][/TD]
[TD]Probiotics[/TD]
[TD][/TD]
[TD] $ 205,872[/TD]
[TD][/TD]
[TD]20%[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Product[/TD]
[TD][/TD]
[TD]Product 1[/TD]
[TD][/TD]
[TD] $ 113,230[/TD]
[TD][/TD]
[TD]55%[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Product[/TD]
[TD][/TD]
[TD]Product 2[/TD]
[TD][/TD]
[TD] $ 51,468[/TD]
[TD][/TD]
[TD]25%[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Product[/TD]
[TD][/TD]
[TD]Product 3[/TD]
[TD][/TD]
[TD] $ 41,174[/TD]
[TD][/TD]
[TD]20%[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 743"]
<tbody>[TR]
[TD]What is the correct syntax for the measure to calculate the 'share of parent' as in the sample below ("Share of Category/Segment")?
Want to calculate from the lowest level, "Product" Sales as a percent of the Segment Level, and then Segment as a percent of Category?[/TD]
[/TR]
[TR]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 743"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Total
Sales[/TD]
[TD][/TD]
[TD]Share
of
Category/
Segment[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Category[/TD]
[TD][/TD]
[TD]Total Vitamins[/TD]
[TD][/TD]
[TD] $ 1,029,361[/TD]
[TD][/TD]
[TD]100%[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Segment[/TD]
[TD][/TD]
[TD]Adult Multivitamins[/TD]
[TD][/TD]
[TD] $ 566,149[/TD]
[TD][/TD]
[TD]55%[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Product[/TD]
[TD][/TD]
[TD]Product 1[/TD]
[TD][/TD]
[TD] $ 396,304[/TD]
[TD][/TD]
[TD]70%[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Product[/TD]
[TD][/TD]
[TD]Product 2[/TD]
[TD][/TD]
[TD] $ 113,230[/TD]
[TD][/TD]
[TD]20%[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Product[/TD]
[TD][/TD]
[TD]Product 3[/TD]
[TD][/TD]
[TD] $ 56,615[/TD]
[TD][/TD]
[TD]10%[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Segment[/TD]
[TD][/TD]
[TD]Calcium[/TD]
[TD][/TD]
[TD] $ 257,340[/TD]
[TD][/TD]
[TD]25%[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Product[/TD]
[TD][/TD]
[TD]Product 1[/TD]
[TD][/TD]
[TD] $ 141,537[/TD]
[TD][/TD]
[TD]55%[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Product[/TD]
[TD][/TD]
[TD]Product 2[/TD]
[TD][/TD]
[TD] $ 64,335[/TD]
[TD][/TD]
[TD]25%[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Product[/TD]
[TD][/TD]
[TD]Product 3[/TD]
[TD][/TD]
[TD] $ 51,468[/TD]
[TD][/TD]
[TD]20%[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Segment[/TD]
[TD][/TD]
[TD]Probiotics[/TD]
[TD][/TD]
[TD] $ 205,872[/TD]
[TD][/TD]
[TD]20%[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Product[/TD]
[TD][/TD]
[TD]Product 1[/TD]
[TD][/TD]
[TD] $ 113,230[/TD]
[TD][/TD]
[TD]55%[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Product[/TD]
[TD][/TD]
[TD]Product 2[/TD]
[TD][/TD]
[TD] $ 51,468[/TD]
[TD][/TD]
[TD]25%[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Product[/TD]
[TD][/TD]
[TD]Product 3[/TD]
[TD][/TD]
[TD] $ 41,174[/TD]
[TD][/TD]
[TD]20%[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]