[TABLE="width: 500"]
<tbody>[TR]
[TD]Company[/TD]
[TD]Products[/TD]
[TD]Amount[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Chiquita[/TD]
[TD]Bananas[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Dole[/TD]
[TD]Pineapples[/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Dole[/TD]
[TD]Coconuts[/TD]
[TD]4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Chiquita[/TD]
[TD]Bananas[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Chiquita[/TD]
[TD]Bananas[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Dole[/TD]
[TD]Pineapples[/TD]
[TD]5[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Chiquita[/TD]
[TD]Pineapples[/TD]
[TD]6[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Chiquita[/TD]
[TD]Coconuts[/TD]
[TD]7[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Dole[/TD]
[TD]Pineapples[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Based on the data table, I was wondering if anyone knows how to write a DAX formula where it will sum the amounts of all the dole product and the ratio of the amounts of a specific product to their total amounts.
For example,
total amount of Dole products: 12
amt of Dole Pineapples: 8
% of Pineapples to total of dole products: 8/12 or 66.67%
<tbody>[TR]
[TD]Company[/TD]
[TD]Products[/TD]
[TD]Amount[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Chiquita[/TD]
[TD]Bananas[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Dole[/TD]
[TD]Pineapples[/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Dole[/TD]
[TD]Coconuts[/TD]
[TD]4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Chiquita[/TD]
[TD]Bananas[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Chiquita[/TD]
[TD]Bananas[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Dole[/TD]
[TD]Pineapples[/TD]
[TD]5[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Chiquita[/TD]
[TD]Pineapples[/TD]
[TD]6[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Chiquita[/TD]
[TD]Coconuts[/TD]
[TD]7[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Dole[/TD]
[TD]Pineapples[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Based on the data table, I was wondering if anyone knows how to write a DAX formula where it will sum the amounts of all the dole product and the ratio of the amounts of a specific product to their total amounts.
For example,
total amount of Dole products: 12
amt of Dole Pineapples: 8
% of Pineapples to total of dole products: 8/12 or 66.67%