Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
New-Qlik
Creator II
Creator II

Not equal to in LET

Hello,

 

How to write not equal to in LET variable .

I want an variable like 

LET vl.name <>  'AAA,BBB,CCC,DDD'  using <> and minus '-' doesnot work.

TIA 

1 Solution

Accepted Solutions
Arthur_Fong
Partner - Specialist III
Partner - Specialist III

Try this:

Script:

Set vl.name  = 'AAA, BBB,CCC';

Expression:

sum({<[Dim1]-={$(vl.name)}>}[Measure])

View solution in original post

5 Replies
Anil_Babu_Samineni

Perhaps

LET Variable1 = '=Not Wildmatch([vl.name], 'AAA', 'BBB')';

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Arthur_Fong
Partner - Specialist III
Partner - Specialist III

Or maybe try:

Set var1='AAA,BBB,CCC,DDD' ;

LOAD *

RESIDENT <TABLENAME>

WHERE <COLUMNNAME> <>$(var1);

New-Qlik
Creator II
Creator II
Author

I used Let vl.name  = 'AAA, BBB,CCC' and in set analysis while calling this variable i used minus '-'

Arthur_Fong
Partner - Specialist III
Partner - Specialist III

Try this:

Script:

Set vl.name  = 'AAA, BBB,CCC';

Expression:

sum({<[Dim1]-={$(vl.name)}>}[Measure])

New-Qlik
Creator II
Creator II
Author

Thanks for replying .Yes i did same and it worked