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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Noura18
Contributor
Contributor

How to dynamically add filter values to NPrinting report

I am a beginner in NPrinting and I need some guidance.

I have created a report that needs to be sent to 20 recipients. Each recipient should receive a version of the report filtered by their specific zone. The zones already exist in a Qlik Sense table, and I have successfully set up the filters.

My question is: how can I dynamically include the zone name in the following elements:
- The report header (to display the zone value)
- The email subject when sending the report
- The report file name (if possible)

The main challenge for me is not the filtering itself, but how to inject the corresponding zone value dynamically into these elements for each recipient.

Any help would be greatly appreciated.

Labels (2)
1 Reply
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

@Noura18  - indeed the answer is to use variables but the very first thing to do is to create such variable in Qlik Sense. You can call it say vZone and assign formula "=Only(Zone)" where Zone is the field representing zone. Also note that my variable expression starts with "=" sign and this is critical for variable to expand/evaluate properly when called from NPrinting. If you are filtering down to more than one Zone you may need to use "=Concat(Distinct Zone,'|')" as your variable expression to allow for more than 1 value. 

Once you create such variable in your Qlik Sense app you need to publish your app again, regeneretate metadata and then you can indeed add it to all those places:

Hope that clarifies it for you 

cheers

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.