Hi.. I have a dataset that organized by customer level and has a variable called 'balance'. I want to check, for each customer, if their balance has ever gone above 500; if it has, how many times. I thought about using array, but not sure how I can use it in this case. Does anyone have any suggestion? customer date balance A 201804 200 A 201805 600 A 201806 450 A 201807 1000 B 201712 0 B 201801 50 B 201802 100 customer date balance ever500 over500 A 201804 200 0 0 A 201805 600 1 1 A 201806 450 1 1 A 201807 1000 1 2 B 201712 0 0 0 B 201801 50 0 0 B 201802 100 0 0
... View more