Hi, I would like some help with beast mode as I'm very new to this.
I have a list of keywords, URLs and their amount.
There are duplicate keywords with different urls, one containing "/blah/" and one not.
Keyword URL amount
AAA xyz.com/aaa/blah/ 1
BBB xyz.com/bbb/blah/ 2
CCC xyz.com/ccc/blah/ -
AAA xyz.com/aaa/ -
BBB xyz.com/bbb/ -
CCC xyz.com/ccc/ 2
I would like domo to return the amount for URLs containing "/blah/,"
but if the amount is "-", return the amount for URLs not containing "/blah/".
In the above example I would be getting:
AAA 1
BBB 2
CCC 2
Does this make sense?
I know the latter is not correct, if someone can walk me through this I would be very grateful.
(CASE WHEN (`URL` = '%/blah/%') AND (`amount` = '-') THEN `amount` WHEN (`URL` NOT '%/blah/%') ELSE END)
or if there is another way to get around this, I'm all ears.