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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Reload the query only if the first script executes successfully

Hi,

Is there a way to reload data only when the first query succeeds. To be clear, Select count(*) from forec where desc='Final'. If the query returns '1', I need the other query which follows to execute. If the Query returns' 0', I need the reload to fail. The other queries are no way related to the above query. How to do that?

--Santhosh

1 Solution

Accepted Solutions
Not applicable
Author

Maybe something like this:

Table1:

load x ;

sql Select count(*) from forec where desc='Final';

if peek('x') = 1 then

table2:

load y;

sql select...

else

exit script;

end if;

View solution in original post

1 Reply
Not applicable
Author

Maybe something like this:

Table1:

load x ;

sql Select count(*) from forec where desc='Final';

if peek('x') = 1 then

table2:

load y;

sql select...

else

exit script;

end if;