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: 
RK007
Contributor II
Contributor II

Pivot table formatting in Qlik NPrinting

Hi all,

thanks in advance.

I have a final Pivot table generated in the NPrinting, I am trying to develop the same with the NPrinting designer.

successfully able to match the data but still trying to get the formatting based on the reference, but not able to achieve it

Ramakoti01_0-1676983255807.png

I have tried with the conditional formatting to get the same formatting but there are differences.

Ramakoti01_1-1676983518387.png

i have checked the conditional formatting in the reference pivot table, but I didn't find any formatting rules.

 

Also,

I tried to put a filter

Ramakoti01_2-1676984301353.png

Can anyone help me

Regards,

Ramakoti

9 Replies
David_Friend
Support
Support

@RK007 what version of NPrinting, and is this coming from QlikView or QlikSense, what versions?

Have a look at this article: https://community.qlik.com/t5/Official-Support-Articles/Nprinting-reports-are-not-appearing-in-prope...

Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi @RK007,

Yours scenario does not touch on output from Qlik (Which @David_Friend has given you hints of) as it is rather formatting of the native excel pivot table cells based on their values. And here is a problem i think.

I would still use conditional formatting to achieve what you need, however cells which are at the top as agrouping labels will only be formatted where the appropriate value is. Therefore for the range of cells in your column grouping dimension you may need to enable "Merge and center cells with labels" option because only then value ("Product 1" in my picture below ) sits on columns F:G. If you leave that "Merge and center cells with labels" option ticked off then "Product 1" is only in column "F"

 

Lech_Miszkiewicz_0-1677024697420.png

Next thing to ensure would be to check option: " Refresh data when opening the file"

Lech_Miszkiewicz_1-1677024882545.png

everything else is just excel based, so you need to think how excel will deal with cell formats when pivot table changes its content (by filtering or changing its layout by users)

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.
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Now filters - I post this as a separate answer as it is completely different topic.

You will not be able to apply filters in the template. If your intend is to remove blanks you can still use <deleterow> tag in your template source table:

Lech_Miszkiewicz_2-1677025225415.png

That will prevent empty row from making its way to final pivot table when report is produced.

 

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.
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

BY THE WAY - for the above filter solution to work you MUST build your Pivot table based on the Excel TABLE and not cells range - steps are documented in https://help.qlik.com page

Lech_Miszkiewicz_3-1677025472756.png

 

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.
RK007
Contributor II
Contributor II
Author

The source file is coming from QlikView

QlikView May 2022

Version 12.70.20000.0

NPrinting Designer May 2022 SR3

Version 22.15.11.0

Ramakoti01_0-1677061457685.png

 

Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

@RK007 

Have you tried points i mentioned above?

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.
RK007
Contributor II
Contributor II
Author

Hi @Lech_Miszkiewicz 

thanks for you response

i have tried points as per your suggestions. but needs more clarity bcz not able to get what exactly I needed.

i am adding few more screenshots for reference

Ramakoti01_0-1677064414412.png

I have selected Merge cells and after that I did formatting of the client group and client subgroup and values but in the result, changes that I made in the template not replicating.

 

Ramakoti01_1-1677064505072.png

1: Appeal and other values should not be center aligned (even I selected merge cells after that I changed the text position in the template which is not replicating)

2:Same for the Client Subgroup 

3: I have done the formatting for the values in the template but not appearing in the result excel

4: Same for the total values 

 

Ramakoti01_2-1677064666169.png

this is the excel report, generated by the NPrinting Designer.

 

Also, this pivot table I have developed from the Details table (St. Table in the NPrinting), there are no extra rows to delete to avoid blanks in the client group. 

 

Could you help where i am missing the logic..

 

Regards,

Ramakoti

Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi @RK007 

So can you tell me what worked?

  1. I can say from screenshots that applying the required changes worked in terms of background colour for cells - am i right?
  2. next problems you have are:
    1. left align of values where required - is that all what is missing in terms of formats? I need to test this but it is too late for me at the moment (11:00 PM) so I will do that tomorrow.

regarding Blanks - are you putting data from Qlik Sense straight table into EXCEL TABLE? Reguired details are obviously described in help document which you should thoroughly study before starting work on NPrinitng: https://help.qlik.com/en-US/nprinting/May2022/Content/NPrinting/ExcelReports/Pivot-table-Excel.htm#a...

Have you followed the steps as mentioned here to create your pivot table? If you did then you would not have blanks (unless you bringing blanks from Qlik Sense data which then should be handled in Qlik Sense or filters and not NPrinting template) . I dont know what else I can tell you to help.

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.
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi @RK007 

I did little bit more testing and here are my findings:

  1. If you select Pivot Table option "Merge & centre..." then there is no way you can left align cells
  2. If you dont select above option you have problem with conditional formatting as it will only work on cells with values

To be honest I did not find good solution for your requirement in Excel - unfortunately excel links background colour to cells in pivot table based on their order so it is not possible to have smart dynamic colouring.

sorry

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.