Re: highest percenatage
- From: "AP" <aphoenix@xxxxxxxxxxxxxxxxx>
- Date: 28 Jun 2006 11:18:23 -0700
Build One query with customer ID, brand, and Count(*), in another
query, reference query 1 and pull the max brand for each customer, call
this query 2. This should list the top brand for each customer. Link
this query in your original by customer ID, pull down the brand field.
Hope this helps, otherwise, give me specific names of the fields with a
smaple record or two
tess@xxxxxxxxxxxxxx wrote:
I'm not following you.
If i query customer id and max brand, i'd get the max brand of all
customers.. I need to get it for each customer.
AP wrote:
A quick and dirty way may be to create a new query with just the
customer id and max brand, then link that query into the existing
query, the max brand will then repeat for every customer record.
tess@xxxxxxxxxxxxxx wrote:
What I need is to find out brand preference per customer. I have
records showing how many of each brand they have purchased in the last
5 years. I can easily create a crosstab query that will calculate
totals per brand per customer. But, what I need is to determine brand
preference, by comparing the number of each brand to the total
purchased to get a percentage. Easy enough... but I need do have a
field that will find the highest percentage per customer, and populate
with that brand name so I can have a 'brand preference' field.
Can someone point me in the right direction?
.
- References:
- highest percenatage
- From: tess
- Re: highest percenatage
- From: AP
- Re: highest percenatage
- From: tess
- highest percenatage
- Prev by Date: Re: Open mdb in non-exclusive mode
- Next by Date: Re: highest percenatage
- Previous by thread: Re: highest percenatage
- Next by thread: Re: highest percenatage
- Index(es):
Relevant Pages
|