G
Guest
OK here is the problem. I need to create a query that will return market
shares. A chart will be based off of this query. The query works perfectly
and the graph works. However, there are too many companies that appear on
the graph. So i would like to modify the query so that only companies that
produce over a certain share to be shown, and all companies beneath that
share to be grouped together and called other (all shares will be summed
together). Is this possible? I have included my query for it.
SELECT qryFSModels.Region, qryFSFuelTankSuppliers.Supplier,
Sum([Production]*[SupplyPercent]) AS [FT Supplier Supply]
FROM qryFSModels LEFT JOIN qryFSFuelTankSuppliers ON qryFSModels.Model_ID =
qryFSFuelTankSuppliers.Model_ID
GROUP BY qryFSModels.Region, qryFSFuelTankSuppliers.Supplier, qryFSModels.Year
HAVING (((qryFSModels.Region)="eur") AND
((Sum([Production]*[SupplyPercent]))>0) AND ((qryFSModels.Year)=2006))
ORDER BY qryFSModels.Region, Sum([Production]*[SupplyPercent]) DESC;
shares. A chart will be based off of this query. The query works perfectly
and the graph works. However, there are too many companies that appear on
the graph. So i would like to modify the query so that only companies that
produce over a certain share to be shown, and all companies beneath that
share to be grouped together and called other (all shares will be summed
together). Is this possible? I have included my query for it.
SELECT qryFSModels.Region, qryFSFuelTankSuppliers.Supplier,
Sum([Production]*[SupplyPercent]) AS [FT Supplier Supply]
FROM qryFSModels LEFT JOIN qryFSFuelTankSuppliers ON qryFSModels.Model_ID =
qryFSFuelTankSuppliers.Model_ID
GROUP BY qryFSModels.Region, qryFSFuelTankSuppliers.Supplier, qryFSModels.Year
HAVING (((qryFSModels.Region)="eur") AND
((Sum([Production]*[SupplyPercent]))>0) AND ((qryFSModels.Year)=2006))
ORDER BY qryFSModels.Region, Sum([Production]*[SupplyPercent]) DESC;