A post was split to a new topic: How to create a new variable based on the values of another variable