Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
everest226
Creator III
Creator III

Qlik Sence script

In sense ,, since there is no option to create trigger to show Line and option  and no cancelled 

 

 

if([Cash Flag] = 'Yes' and [Money Status] = 'Line', 'Line',
if([Cash Flag] = 'No' and [Money Status] = 'Line', 'Option','Cancelled')) as [Hold Cash],

 

now i want to restrict cancelled , i dont want cancelled data to fetch 

1 Solution

Accepted Solutions
Anil_Babu_Samineni

If i get proper question, Perhaps this way?

Table:

Load * Where [Hold Cash] <> 'Cancelled'; // This concept called, Preceding Load

Load *, if([Cash Flag] = 'Yes' and [Money Status] = 'Line', 'Line',
if([Cash Flag] = 'No' and [Money Status] = 'Line', 'Option','Cancelled')) as [Hold Cash];

Else, you can simply use only Option.

Load *, if([Cash Flag] = 'Yes' and [Money Status] = 'Line', 'Line',
if([Cash Flag] = 'No' and [Money Status] = 'Line', 'Option','Cancelled')) as [Hold Cash];

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

View solution in original post

2 Replies
sunny_talwar

You don't want to bring data which have Hold Cash = 'Cancelled'? May be just add a where clause like this

Where [Money Status] = 'Line' and Match([Cash Flag], 'Yes', 'No');
Anil_Babu_Samineni

If i get proper question, Perhaps this way?

Table:

Load * Where [Hold Cash] <> 'Cancelled'; // This concept called, Preceding Load

Load *, if([Cash Flag] = 'Yes' and [Money Status] = 'Line', 'Line',
if([Cash Flag] = 'No' and [Money Status] = 'Line', 'Option','Cancelled')) as [Hold Cash];

Else, you can simply use only Option.

Load *, if([Cash Flag] = 'Yes' and [Money Status] = 'Line', 'Line',
if([Cash Flag] = 'No' and [Money Status] = 'Line', 'Option','Cancelled')) as [Hold Cash];

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