Hi All, I am dealing with a long table (group data) of purchase records. I want to know for each customer, whether they have the exactly same purchase price every time of their visits. Let's say my goal is to test whether the purchase price is $10 for each customer each time they visit.. Below is an example:
ID Price
1 3
1 4
1 3
2 5
2 5
And what I want is ...
ID Price Same_Price_equal_to_10
1 3 0
1 4 0
1 3 0
2 5 0
2 5 0
3 10 1
3 10 1
3 10 1
3 10 1
Note that if this customer has persistent purchase price of 5... is not nothing I wanted. I want to set a target for the purchase price and only if this targeted purchase price is consistent all the time would be something I wanted... Anyone could help me with that? Very much appreciated!