T
Triona*
Guest
Hi folks,
Im trying to make a chart to show my 5 best selling parts per month, but can't get the query right.
I started off with the following (Query1) to get the quantity of each part sold each day:
Then i did the following (Query2)to get the quantity of each part sold per month:
So now i have totals of each part sold per month but i need to chart the top 6 sellers per month and i dont have a clue where to go from here...please help me...
Cheers
Im trying to make a chart to show my 5 best selling parts per month, but can't get the query right.
I started off with the following (Query1) to get the quantity of each part sold each day:
Code:
SELECT tlbSales.SaleDate, tblSales.[P/N], Sum(tblSales.Quantity) AS Quantity FROM tblSales
Then i did the following (Query2)to get the quantity of each part sold per month:
Code:
SELECT Query1.[P/N], Sum(Query1.Quantity) AS TotalPerMonth, Format([SaleDate],"mmm-yy") AS DateOfSale FROM Query1
So now i have totals of each part sold per month but i need to chart the top 6 sellers per month and i dont have a clue where to go from here...please help me...
Cheers