Quantcast
Channel: Data Preparation & Blending discussions
Viewing all articles
Browse latest Browse all 4999

If Column is X or Y AND another column is Z then put an"X" Else leave it blank

$
0
0

I am trying to write an expression to look at two columns in my file. The first column can meet two criteria (Daily or Weekly) then second column can only say Sunday. I have tried many variations and most often the error says it can't end with an operator.

I googled and found II looking thing that I think can be used for the OR but it still isn't right.

 

Here is my latest try:

IFContains([Product Type],"DAILY")||contains([Product Type],"Weekly") && ([Insert Day],"Sunday")
THEN "X" Else "" ENDIF

 

Any help would be great!!

Thanks!


Viewing all articles
Browse latest Browse all 4999

Trending Articles