Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
RimDataAnalyst
Contributor III
Contributor III

IF , else clause

Hello , 

Hello ,

I want to understand between different documents to fill in the last document filled in, and here is the script that I insert in the data loading script just after loading the data

********************

current_document ='unvailable';

if( [Business Agreement]= 'True' , current_document = 'Business Agreement');

elseif( ([Trial Agreement] ='True' and [Business Agreement]= 'False') then current_document = 'Trial Agreement') ;

else

current_document = 'unvailable';

end if

 

RimDataAnalyst_0-1659516774908.png

 

******************

i think there is a syntax error someone could help please 

Thank you 

Labels (4)
1 Solution

Accepted Solutions
justISO
Specialist
Specialist

Hi, I believe you are trying to define variable current_document. Try this:

LET current_document = if([Business Agreement]='True', 'Business Agreement', if([Trial Agreement]= 'True' and [Business Agreement]='False', 'Trial Agreement', 'unavailable'));

View solution in original post

2 Replies
justISO
Specialist
Specialist

Hi, I believe you are trying to define variable current_document. Try this:

LET current_document = if([Business Agreement]='True', 'Business Agreement', if([Trial Agreement]= 'True' and [Business Agreement]='False', 'Trial Agreement', 'unavailable'));

RimDataAnalyst
Contributor III
Contributor III
Author

Thanks a lot it s working but when i want to add current_document to a visualization i can't find it