ErickaMeade
Registered User.
- Local time
- Today, 02:10
- Joined
- May 26, 2014
- Messages
- 10
I'm not sure if this is possible or what it would be called to even search. I am trying to create a query that will pull data from one column of, for each customer, the value of 50% or more of a category is the same. The ones that are not the same as the other 50% will pull data from another column.
See sample below or attached image. Any help or direction would be appreciated
Source Data
Customer Category Item Discount ItemValue CategoryValue
ABC Co. Produce Apple 50% Green Red
ABC Co. Produce Pear 25% Green Red
ABC Co. Produce Artichoke 25% Green Red
ABC Co. Produce Pepper 25% Green Red
ABC Co. Produce Celery 15% Green Red
ABC Co. Produce Grapes 25% Green Red
Desired Result
Customer Discount Group Discount Expr1:Value
ABC Co. Produce 25% Red
ABC Co. Celery 15% Green
ABC Co. Apple 50% Green
See sample below or attached image. Any help or direction would be appreciated
Source Data
Customer Category Item Discount ItemValue CategoryValue
ABC Co. Produce Apple 50% Green Red
ABC Co. Produce Pear 25% Green Red
ABC Co. Produce Artichoke 25% Green Red
ABC Co. Produce Pepper 25% Green Red
ABC Co. Produce Celery 15% Green Red
ABC Co. Produce Grapes 25% Green Red
Desired Result
Customer Discount Group Discount Expr1:Value
ABC Co. Produce 25% Red
ABC Co. Celery 15% Green
ABC Co. Apple 50% Green
Attachments
Last edited: