Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2800

Re: create a variable to count customer by size

$
0
0

Hi Ragoth

 

Can you help me with this, please?

 

I am trying to create a new variable to calculate how many items were sold by brand and type of sales consultant. But the problem I have is I have two conditions.

 

Brand x

 

Type sales consultant ON    min (0.25 bottles)

Type sales consultant OFF    min (0.50 bottles)

 

Brand y

 

Type sales consultant ON   min (0.17 bottles)

Type sales consultant OFF   min (0.33 bottles)

 

My data is

 

Brand       Type        Item      Sales

X               On          1            0.25

X               On          3               1

X               Off          2            0.50

X               Off          1            0.16

Y               On          1            0.17

Y               On          3               0

Y               Off          2            0.50

Y               Off          1            0.16

 

my result must be

 

brand X = 3 (because 2 sales consultant ON sold more than the min (0.25)  AND 1 sales consultant OFF sold more than the min (0.50)

 

brand Y = 2 (because 1 sales consultant ON sold more than the min (0.17)  AND 1 sales consultant OFF sold more than the min (0.33)

 

 

How can I make it?

 

thanks


Viewing all articles
Browse latest Browse all 2800

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>