Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: jchartrandMorning,
I'm sure I've over complicated what should be a simple procedure in Lavastorm.
Essentially I have the following rules that need to be applied to an existing data set. If those rules are met, I want my new column to be populated with a specific string.
i.e.
if 'Brand' = "X" and 'Category' = null then NewCategory = "Y" else NewCategory = 'Category'
Now here is where I'm sure I've over complicated this.
I want to repeat that rule with several other inputs, and have them all populate the same single column output for NewCategory. I've worked around it in a convoluted way so I thought I'd ask the experts for a better solution.
if 'Brand' = "X" and 'Category' = null then NewCategory = "Y" else NewCategory = 'Category'
if 'Brand' = "A" and 'Category' = null then NewCategory = "B" else NewCategory = 'Category'
if 'Brand' = "B" and 'Category' = null then NewCategory = "Y" else NewCategory = 'Category'
if 'Brand' = "C" and 'Category' = null then NewCategory = "D" else NewCategory = 'Category'
Thanks!
J