L
LC
Hi
I'm trying to calculate Percentage of Totals for certain categories
For example:
Table: Sales
===================
Product Region Amount
Apple North 50
Apple South 40
Pear North 30
Orange East 20
Orange West 60
Orange South 20
I know I can create a query to group information as follows
Query: Group
==========
Product Amount
Apple 90
Pear 30
Orange 100
How Do I move back this info to the Sales Table to build the following
result:
Table: Sales (New)
===================
Product Region Amount Total PercetOfCat
Apple North 50 90 =50/90
Apple South 40 90 =40/90
Pear North 30 30 =30/30
Orange East 20 100 =20/100
Orange West 60 100 =60/100
Orange South 20 100 =20/100
Thanks in advance,
LC
I'm trying to calculate Percentage of Totals for certain categories
For example:
Table: Sales
===================
Product Region Amount
Apple North 50
Apple South 40
Pear North 30
Orange East 20
Orange West 60
Orange South 20
I know I can create a query to group information as follows
Query: Group
==========
Product Amount
Apple 90
Pear 30
Orange 100
How Do I move back this info to the Sales Table to build the following
result:
Table: Sales (New)
===================
Product Region Amount Total PercetOfCat
Apple North 50 90 =50/90
Apple South 40 90 =40/90
Pear North 30 30 =30/30
Orange East 20 100 =20/100
Orange West 60 100 =60/100
Orange South 20 100 =20/100
Thanks in advance,
LC