Hi
I continue practicing in BO, in this moment 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