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

Hide excel sheet in final report (pdf) if no data to show

Hi everyone,

My client has tasked me with creating a PDF NPrinting report from an Excel model. One of the Excel sheets includes a table that displays the sales amounts exceeding 100K. However, for certain sellers, this table does not have any data.

My client has requested that I exclude this page from the PDF report if such cases occur.

My question is: Does NPrinting offer a feature to accomplish this action?

Thank you!"

Labels (2)
2 Solutions

Accepted Solutions
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi @Jorge_FR 

no - there is no such native functionality. I can think of workaround though...

I assume this report create file for each seller, if so you can:

  • build that raport and duplicate it so you have effectively 2 templates (1 with that page and one without it)
  • You can setup 2 publish tasks with Advanced Search filter to put sellers which have data with sales >100K against one task and others against the other task. 

I dont know if this solution is acceptable as we dont know if you apply cycle functionality or whether you use user filters or maybe section access to create sellers reports and for each of those scenarios approach may be different.

Lastly - I would say - since output is PDF maybe you need to consider PixelPerfect report which has ability to hide/show segments of reports based on condition

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

Ruggero_Piccoli
Support
Support

Hi,

I agree with the suggestion to develop a PixelPerfect template. It is optimized for PDF output and it has formatting rules that allow you to hide bands on certain conditions but it requires a new template. Getting PDF from Excel templates is supported but you have always to do test and update because Excel is not made to manage the layout of "printed" documents. 

You can also evaluate conditions https://help.qlik.com/en-US/nprinting/May2022/Content/NPrinting/ReportsDevelopment/Conditions.htm. You can create 2 Excel templates, one with the table and another without, and add them to a task one with the condition false and the other with true so only the correct one will be sent.

Best Regards,

Ruggero



Best Regards,
Ruggero
---------------------------------------------
When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads with a LIKE if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads with LIKEs if you feel additional info is useful to others.

View solution in original post

5 Replies
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi @Jorge_FR 

no - there is no such native functionality. I can think of workaround though...

I assume this report create file for each seller, if so you can:

  • build that raport and duplicate it so you have effectively 2 templates (1 with that page and one without it)
  • You can setup 2 publish tasks with Advanced Search filter to put sellers which have data with sales >100K against one task and others against the other task. 

I dont know if this solution is acceptable as we dont know if you apply cycle functionality or whether you use user filters or maybe section access to create sellers reports and for each of those scenarios approach may be different.

Lastly - I would say - since output is PDF maybe you need to consider PixelPerfect report which has ability to hide/show segments of reports based on condition

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.
Jorge_FR
Partner - Contributor III
Partner - Contributor III
Author

Hi @Lech_Miszkiewicz ,

Many thanks for your reply.

I will conduct some tests to determine the best option to present to my client.

Regarding the option of using two templates:

Would using cycles (Dept and Seller) to generate the reports change the approach of using an advanced filter?

If I understand correctly, it is the advanced filter on the publish task that will allow NPrinting to switch templates if the condition > 100k is met?

Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Well, yes - it will change the result. 

Using cycle causes creation of a single ZIP file with all combinations of cycle fields and values as separate reports in it. 

If we are going to create 2 templates we will create 2 separate zip files - each having separate set of reports.

Since you are cycling over multiple dimensions your advanced search filter will need to be based on concatenated field composed of those 2 dimensions as only then you will be able to ensure correct results.

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.
Ruggero_Piccoli
Support
Support

Hi,

I agree with the suggestion to develop a PixelPerfect template. It is optimized for PDF output and it has formatting rules that allow you to hide bands on certain conditions but it requires a new template. Getting PDF from Excel templates is supported but you have always to do test and update because Excel is not made to manage the layout of "printed" documents. 

You can also evaluate conditions https://help.qlik.com/en-US/nprinting/May2022/Content/NPrinting/ReportsDevelopment/Conditions.htm. You can create 2 Excel templates, one with the table and another without, and add them to a task one with the condition false and the other with true so only the correct one will be sent.

Best Regards,

Ruggero



Best Regards,
Ruggero
---------------------------------------------
When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads with a LIKE if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads with LIKEs if you feel additional info is useful to others.
Jorge_FR
Partner - Contributor III
Partner - Contributor III
Author

Dear @Lech_Miszkiewicz  and @Ruggero_Piccoli ,

Thanks so much for your valuable input.

I will proceed with conducting tests and implementing the approaches you proposed.

I truly admire the supportive and knowledgeable community here.

Once again, thank you both for taking the time to share your insights.

Best Regards,

Jorge