Hi guys, I hope you are well.
I have a Dash where I can see the sellout price versus the median price per customer.
And I have a measurement based on a parameter where I can see the price compared to the price with 'x' discount.
I need to count how many customers have Sellout price lower than this discounted value. (On any day of the selected period)
when i select EAN '7896004719122', this store_id (25805) should be counted, because they've 2 day's when the sellout price was less then 'discount price'.
The another store id (24517) , should not be counted because they did haven't sellout price less than 'discount price'
So, in resume.
I need to put two new collumns on the first table, the first one counting how many stores did have the sellout price (at least one day) less than 'discount price' and the another collumn counting store_id without alerts.
Somebody could help giving me a tip to start?