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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Ron1
Partner - Creator
Partner - Creator

IF THEN condition not enabling the entire code to run

Can you please let us know if there is anything wrong in this below code?

When i am executing the script, it is getting completed after this part.. There are multiple other tabs of script present, but those are not executing further. Please help

Let vYear= year(now());

if num(year(now()))=2019 THEN
Set MinCount = $(vYear)&'005';
Set MinOSTCount = $(vYear)&'05';

Else
//Incremental part
Set MinCount = $(vYear)&'001';
Set MinOSTCount = $(vYear)&'01'

2 Solutions

Accepted Solutions
martinpohl
Partner - Master
Partner - Master

is there a

endif

in original script?

Regards

View solution in original post

DavidM
Partner - Creator II
Partner - Creator II

You're missing ; in the last line.

Also I don't see END IF

View solution in original post

2 Replies
martinpohl
Partner - Master
Partner - Master

is there a

endif

in original script?

Regards

DavidM
Partner - Creator II
Partner - Creator II

You're missing ; in the last line.

Also I don't see END IF