Skip to main content
Announcements
Defect acknowledgement with Nprinting Engine May 2022 SR2, please READ HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
leonardo_sudo
Contributor III
Contributor III

Nprinting: Condition not working

1 Solution

Accepted Solutions
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

this comes down to a very simple understanding of how variables work. Your variable in Qlik Sense contains a string and at this stage is not evaluated. 
When you call this variable in any Qlik Sense Object you are passing this string into Expression and then it evalueates (that is why you see "1" on your screenshots).

Now down to NPrinting - in this case you want a RESULT of your variable calcualtion to be checked agains your condition (but at this stage your variable is not evaluated and it still contains just text "IF($(vHectares)> 0,1,0)"

The only option to evaluate variable before passing it to NPrinitng condition is to put equal sign ("=") in front of it in Qlik Sense definition - like: "=IF($(vHectares)> 0,1,0)"

Then you might have another problem as inside you have another variable which depends on its syntax will/will not work properly. 

Check on help.qlik.com how for more information on what level conditions can be applied (task/report level etc..)

cheers Lech, 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 to the problem.

View solution in original post

1 Reply
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

this comes down to a very simple understanding of how variables work. Your variable in Qlik Sense contains a string and at this stage is not evaluated. 
When you call this variable in any Qlik Sense Object you are passing this string into Expression and then it evalueates (that is why you see "1" on your screenshots).

Now down to NPrinting - in this case you want a RESULT of your variable calcualtion to be checked agains your condition (but at this stage your variable is not evaluated and it still contains just text "IF($(vHectares)> 0,1,0)"

The only option to evaluate variable before passing it to NPrinitng condition is to put equal sign ("=") in front of it in Qlik Sense definition - like: "=IF($(vHectares)> 0,1,0)"

Then you might have another problem as inside you have another variable which depends on its syntax will/will not work properly. 

Check on help.qlik.com how for more information on what level conditions can be applied (task/report level etc..)

cheers Lech, 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 to the problem.