G
Guest
I have a long list of records that I would like to group into buckets
(cohorts) according to a value. For example, it might look like this
Item Cost Profit %
Shoes 15 10%
Socks 10 12%
Belts 20 8%
Shirts 25 15%
Hats 22 12%
I'd like to build a query that groups them into "15 or less", "16-20", and
"Greater than 20" so that I can do calculations on the other fields (ie avg
profit). I know I can do it with nested if statements, but I have 15
buckets, and I'd like to be able to change the parameters easier than I could
with if statements. (Oh, and I'm no good at SQL or VBA, so an Access query
solution would be easiest.)
Thanks,
Zack
(cohorts) according to a value. For example, it might look like this
Item Cost Profit %
Shoes 15 10%
Socks 10 12%
Belts 20 8%
Shirts 25 15%
Hats 22 12%
I'd like to build a query that groups them into "15 or less", "16-20", and
"Greater than 20" so that I can do calculations on the other fields (ie avg
profit). I know I can do it with nested if statements, but I have 15
buckets, and I'd like to be able to change the parameters easier than I could
with if statements. (Oh, and I'm no good at SQL or VBA, so an Access query
solution would be easiest.)
Thanks,
Zack