Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
qliksu
Contributor
Contributor

IF condition in qliksense Text Box object not working in NPrinting

Hello Experts,

I have a text box in Qliksense where i use the combination of Index() and Replace() to eliminate few filters that show up in the getcurrenctselection() which works pertectly in Qliksense. But once i export this object to NPrinting as an image, the logic doesnt seem to be working and is showing all the selected filters in the ondemand excel report. Below is my expression. 

=IF(Index(GetCurrentSelections(chr(10)),'# Records') > 0,Replace(GetCurrentSelections(chr(10)),'# Records: =rand()<=vSampleSize/100+now()*0',''),
GetCurrentSelections(chr(10))).

Can anyone help?

 

Labels (3)
1 Reply
ajaykakkar93
Specialist III
Specialist III

Hi,

I faced the same issue please add the expression in a variable and then call the variable directly in NPrinting or in text object it will work just fine.

Please mark the correct replies as Solution. Regards, ARK
Profile| GitHub|YouTube|Extension|Mashup|Qlik API|Qlik NPrinting