M
Manuel Indacochea via AccessMonster.com
Having the table named [Top3Sales] with some date like that:
Dept Item Sales
1223 OPQ $868.00
1229 OPQ $1,956.00
1229 RST $353.00
1229 LMN $8,232.00
1229 ABC $4,482.00
1356 OPQ $3,189.00
1356 ABC $9,386.00
1356 HJK $2,542.00
1360 OPQ $9,439.00
1363 OPQ $114.00
1363 RST $7,225.00
1374 OPQ $27.00
1374 RST $8,607.00
1374 LMN $8,087.00
1374 HJK $464.00
I would like to have a query that shows the Top 3 item with higher amount
of sells, grouped by department, something like the following:
Dept Item Total
1223 OPQ $868
1229 ABC $4,482
1229 LMN $8,232
1229 OPQ $1,956
1356 ABC $9,386
1356 HJK $2,542
1356 OPQ $3,189
1360 OPQ $9,439
1363 OPQ $114
1363 RST $7,225
1374 HJK $464
1374 LMN $8,087
1374 OPQ $27
Notice that there may be departments with only 1 or 2 items sold.
I already reviewed previous messages posted and found nothing similar to
this, so I would appreciate so much any assistance.
Dept Item Sales
1223 OPQ $868.00
1229 OPQ $1,956.00
1229 RST $353.00
1229 LMN $8,232.00
1229 ABC $4,482.00
1356 OPQ $3,189.00
1356 ABC $9,386.00
1356 HJK $2,542.00
1360 OPQ $9,439.00
1363 OPQ $114.00
1363 RST $7,225.00
1374 OPQ $27.00
1374 RST $8,607.00
1374 LMN $8,087.00
1374 HJK $464.00
I would like to have a query that shows the Top 3 item with higher amount
of sells, grouped by department, something like the following:
Dept Item Total
1223 OPQ $868
1229 ABC $4,482
1229 LMN $8,232
1229 OPQ $1,956
1356 ABC $9,386
1356 HJK $2,542
1356 OPQ $3,189
1360 OPQ $9,439
1363 OPQ $114
1363 RST $7,225
1374 HJK $464
1374 LMN $8,087
1374 OPQ $27
Notice that there may be departments with only 1 or 2 items sold.
I already reviewed previous messages posted and found nothing similar to
this, so I would appreciate so much any assistance.