Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I want to create a new column N that would look at the value of Column A, if Column A contains stream as 'abc', then the value of Column N should be 'Yes', if not contain 'abc', the value should be 'No'.
In excel, for Column N it is something like: =IF(ISNUMBER(SEARCH("abc",A1)),"Yes","No").
I want to do that in Qlik by adding a new Column and call it 'N'. How to do that? Thanks in advance
Hi Luda,
1 option:
tmp:
LOAD *, IF(WildMatch(MyField,'*ABC*'),'YES','NO') AS NewField;
LOAD * Inline
[
MyField
ABCDEF
123ABC
DES123
HNT6778
098FBGG
OOOABC
];
IF(A='abc', 'Yes', 'No') AS N
Hi Luda,
1 option:
tmp:
LOAD *, IF(WildMatch(MyField,'*ABC*'),'YES','NO') AS NewField;
LOAD * Inline
[
MyField
ABCDEF
123ABC
DES123
HNT6778
098FBGG
OOOABC
];
If(Index(A,'abc'),'Yes','No') as N
hope this helps
regards
Marco
Thanks very much, it works!
Thanks very much, it works!
Hello Gan, can you close the thread marking correct/helpful responses accordingly.
Thanks
V.