Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
New-Qlik
Creator III
Creator III

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 III
Creator III
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 III
Creator III
Author

Thanks for replying .Yes i did same and it worked