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: 
Sergio3
Partner - Contributor III
Partner - Contributor III

Calculate condition variable

Hi all!

I have chart in qlikview app with calculate condition based on variable ( a button like 0\1, 1 to calculate).

Default value of this variable is 0, and chart not calculated in NP.

How i can change value of this variable to 1 and start calculate chart in Nprinting 19 ?

Thank you!

1 Solution

Accepted Solutions
Natalija
Partner - Creator
Partner - Creator

Hi,

That's  correct.

Create field (Flag) with variable's both values 0 and 1. 

In My case as example  filter will have 2 values Positive and Negative .

variable.png

field.png

filter.png

 

Natalija

View solution in original post

6 Replies
Natalija
Partner - Creator
Partner - Creator

Hi,

Not 100% sure if I understand your issue, but without changing anything can't you simply change your final task condition from TRUE to FALSE?

condition.png

or just change variable from 1 to 0

rule.png

Natalija

Sergio3
Partner - Contributor III
Partner - Contributor III
Author

No, this is not what i need.

This option only expect some result, not change it, and chart will not  calculate because calculate condition in app not performed.

Natalija
Partner - Creator
Partner - Creator

Hi,

Ok ,then you'll have to explain one more time what exactly you need.

I understood following:

1)in your QlikView app default variable's value is 0

2)when value is 0 then your chart is not populated in Qlik app and  in NP, therefore you need variable to be 1, so chart would be visible in Qlik app and NP. Is this correct?

 

If yes,then you don't need condition, you need create filter that variable equals 1 and apply this filter  to your chart object in Report template or to whole report itself.

 

Natalija

 

 

Sergio3
Partner - Contributor III
Partner - Contributor III
Author

Yes, you understood me correctly!

But how i can do it?

In filter tab i can only change "Fields", i did't see variables...

 

Natalija
Partner - Creator
Partner - Creator

Hi,

That's  correct.

Create field (Flag) with variable's both values 0 and 1. 

In My case as example  filter will have 2 values Positive and Negative .

variable.png

field.png

filter.png

 

Natalija

Sergio3
Partner - Contributor III
Partner - Contributor III
Author

Thats perfect 🙂