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: 
woutermak
Partner - Creator III
Partner - Creator III

Filters in Nprinting

Hi All,

I have the following case:
A data sheet with data linked per sale employee.
I want to use Nprinting to send every month a report to each sales person.

So person A, may only see his own results in his report.
Person B may only see his own results in his report.
And so on

I have to use filters for this. But is there a possibility to use a loop or something in filters? Or do I have to create for each user a filter?

I use nPrinting 17.2

Please let me know if you have any ideas.
Regards,
Wouter

1 Solution

Accepted Solutions
Stephen_Jasionowski

Wouter - if the users have been imported with associated filters, you only need one publish task.

Simply add all the users (or create a group for them and then add the group to make things easier) along with the reports you want distributed to them.

NPrinting will then go thru each user, apply filters to the report data, create the report and move on to the next user.

View solution in original post

8 Replies
lironbaram
Partner - Master III
Partner - Master III

hi

your best approach will be to assign each user the relevant filter

(you can do a batch reload of users using this method

Importing users with filters and groups ‒ Qlik NPrinting )

with this approach you'll only have one template of the report

furthermore in future reports you'll be assured that the users will only get their relevant data only

woutermak
Partner - Creator III
Partner - Creator III
Author

Hi Thanks,

But I have know all my users imported.
For example user ABC with filter ABC. (user name linke ABC). Everything is linked to my app.

Do I still need to create a publish task per user? And use the created filter rules?
Regards,
Wouter

Stephen_Jasionowski

Wouter - if the users have been imported with associated filters, you only need one publish task.

Simply add all the users (or create a group for them and then add the group to make things easier) along with the reports you want distributed to them.

NPrinting will then go thru each user, apply filters to the report data, create the report and move on to the next user.

woutermak
Partner - Creator III
Partner - Creator III
Author

Thanks,

is it also possible to create one filter for every employee? You explained that Nprinting go thru each user. Is something possible like this: user={user}.
Otherwise I have to create a filter per employee with something like user={username} per user.

Daniel_Jenkins
Specialist III
Specialist III

Hi Wouter,

You need to create a filter per employee (user).

If you have many users, normally (as long as there is a fixed pattern) you should be able to use Excel functions or QlikView Calculated Dimensions to parse existing fields to create e-mail addresses and/or filter definitions.

HTH - Daniel.

dysjd
Contributor
Contributor

Hi, I am looking for the approach for the same request. Shall we use single one filter to achieve user = {user}?

If the filters is necessary for each person, suppose we should have 1000 filters for 1000 users. 😞 

 

thanks,

Derek

monaali602
Partner - Contributor III
Partner - Contributor III

Hi,

were you able to add something like user = {user} in  a filter to generate a report for each user

 

Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

HI @monaali602 

Such thing does not exist. i suggest to study help document to understand how NPrinting works:

https://help.qlik.com/en-US/nprinting/May2021/Content/NPrinting/DeployingQVNprinting/Import-Users-Fi...

You can also keep on browsing community as this topic was discussed many times.

cheers

Lech

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.