Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Friends,
Please advise me how to use this in Qlikview scripting.
=if ( KEY_ID LIKE 'L%-L%' or KEY_ID LIKE 'L%M%SK%, x+1, y+1)
Any Example to use Match, WildMatch functions in Qlikview.
Sample data for KEY_ID:
L1GB-MSK | |||
L1KB-MSK | |||
L1LA-MSK | |||
|
Thanks
Kumar
Try this,
=Pick(WildMatch([Bid Item No.],'Anti*Bo*','Anti*C*','Anti*Sof*'),'A','B','C')
Output:
Hi,
You can use like operator in Qlikview. You can also use wild match function like below.
IF ( KEY_ID LIKE 'L*-L*' OR KEY_ID LIKE 'L*M*SK*', 'x+1', 'y+1') as Test1, // Method 1
IF(WildMatch(KEY_ID, 'L*-L*', 'L*M*SK*'), 'x+1', 'y+1') as Test2; // Method 2
Hi,
try :
Syntax:
LOAD Products,
City,
pick( WildMatch(City,'*Punjab*','*Haryana*','*Delhi*'),'P1','P2','P3')
as Data
FROM
(ooxml, embedded labels, table is Sheet3);
Thanks,
AS
Try it,
KeyId:
Load * Inline [
KEY_ID
L1GB-MSK
L1KB-MSK
L1LA-MSK
LEPLY-LEP
L05BMASK
L05EMASK
];
Load *,
Pick(WildMatch([KEY_ID],'L*L*'),[KEY_ID]) as newKey1,
Pick(WildMatch([KEY_ID],'L*M*SK*'),[KEY_ID]) as newKey2
Resident KeyId;
DROP Table KeyId;
Hi
Try like this
Load *, if (WildMatch(KEY_ID,'L*-L*', 'L*M*SK*'), 1, 2) as NewField Inline
[
KEY_ID
L1GB-MSK
L1KB-MSK
L1LA-MSK
LEPLY-LEP
L05BMASK
L05EMASK
];
see this below link to understand Wildmatch fucntion