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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
renuka_sasikumar
Creator III
Creator III

Pivot Table in NPrinting 16

Hi,

I have a Pivot table in QlikView and want to export same in N-Printing.

How do I go about it, because when exporting Pivot Table from QlikView to N-Printing it's getting converted into Straight Table.

I want the below exact table in N-Printing Excel Report Distribution.

GroupBranch
Group1ABXC
XYZ
Abhs
hzxvch
bhzb

Can anyone pls help me.

Regards,

Renuka S

24 Replies
renuka_sasikumar
Creator III
Creator III
Author

Hi Lech,

Thanks for your reply.

The result is in NPrinting.

Kindly find the below info.

1.

vDisb1='Q'&vMaxQtr &' Target per Month'

Where vMaxQtr=MAX(IF([FIN YEAR]=vMaxYear,Fin_Qtr_No))

wherevMaxYear=MAX([FIN YEAR])

2.label expression in qlik.

='Q'&vMaxQtr &' Target per Month'

3. result in qlik.

Regards,

Renuka S

Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

i see

so like i said before you would have to use "=" sign in variable definition to evaluate it prior to bringin it to NPrinitng.

Open your app, go to Ctr+alt+V (or variable editor) and edit your variable by putting "=" sign in it so your variable would be:

vDisb1:      ='Q'&vMaxQtr &' Target per Month'

If you do not want to re-factor your Qlik App you can create this label directly in NPrinitng by creating function in template where template formula would be simply:

='Q'&vMaxQtr &' Target per Month'

You could then use formula tag instead of column label coming directly from Qlik

more details here:

https://help.qlik.com/en-US/nprinting/June2018/Content/ExcelReports/Formulas.htm

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.
renuka_sasikumar
Creator III
Creator III
Author

Hi Lech,

I tried the same, but my data itself is not coming in Straight table. So I did some changes in QVW, I created that label as Variable. (vDisb1,vDisb2).

So in NPrinting I am taking as Chart Level. I can view the Data.

My output in the above template.

So after this when I do Insert-Table and the Design Summarize with Pivot Table, No data appears.

Can you help in this where I am missing if any point.

Thanks in Advance.

Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

few questions:

Why are you using level here? It will hit the performance a lot!!!

Second - why are you not using built-in excel Table?

did you try to follow steps i have provided isn some other posts?

nprinting Excel with Pivot

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.
renuka_sasikumar
Creator III
Creator III
Author

Level because as suggested (Reporting) and if I create Pivot table there is a chance of editing the output by un-hiding the sheet.

Second- Yes I tried the steps which mentioned in other post also with few more ways.

Output for the mentioned link-

But my main problem is the Dynamic label of the Report which is used as Variable.

Even if I do the same in Excel Pivot - same problem.

Regards,

Renuka

Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

I did little demo with screenshots as i do not know how else i can help you.

Note, If you will use dynamic column labels and would try to use Excel Pivot table your solution will not work as Microsoft Excel will not recognize new columns as those which will need to be added to Pivot View.

Below are steps on how to achieve dynamic labels in XLS template with NPrinitng.

cheers

Lech

My Data model in Qlik

1.png

My Front end Chart/Table

2.png

My variable definitions

3.png

My evaluation via $sign expansion

4.png

Building NPrinitng Template

6.png

OPTION 1 - Using NPrinting formulas!!! (i use formula to call variable created in Qlik. Here you can also directly put any formula which will return value (just like textbox in Qlik)

8.png

OPTION 2 - direct use of variables (depending on variables you use you might need to choose between option 1 or 2)

7.png

Preview - labels are working as expected (columns f & G)

9.png

Now Lets replace static column names with dynamic tags

10.png

Creating Excel Table

11.png

removing  last row12.png

Result as expected

13.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.
renuka_sasikumar
Creator III
Creator III
Author

Hi Lech,

Thank You for the demo in simple way.

Hope you got my query, if you see in my last and last second reply I have mentioned that my Dynamic variable is working till Straight Table but after when I convert into Pivot then there is a problem, i.e.:- Design Summarize with Pivot Table after all the step as mentioned by you.

Regards,

Renuka S

Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

so as mentioned before:

"

Note, If you will use dynamic column labels and would try to use Excel Pivot table your solution will not work as Microsoft Excel will not recognize new columns as those which will need to be added to Pivot View.

"

there is no solution for this in Excel and it is not NPrinitng limitation but MsExcel limitation!

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

To add to my previous comment.

Before designing report in NPrinitng i would suggest to take into account following restrictions:

  • When using Excel Pivot table as a final solution make sure that all fields used in your PIVOT Table structure will have static name.
  • If you require dynamic names for some of the colums it maybe required to put them as values in a Qlik source table
  • If the format of the output is similar maybe you could use straight table with dynamic columns to achieve the same what you are trying to achieve with Pivot table
  • I would try to verify which parts of report are dynamic and affect report structure and which are just values flowing through as data changes with the time

if you could provide us with screenshots and steps you are trying to do to build your report maybe we could help you more. Your description though has to be very detailed including data model in qlik, screenshot of expressions and layout of object in qlik and then detailed screenshot of template.

If you dont want to use your own data maybe build a small Qlik app with dummy data, attach it here and provide an excel file with expected output, so we can start picking our brains on how to help you.

Your problem is a solution problem really and needs to be looked at with a particular data sample.

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.
renuka_sasikumar
Creator III
Creator III
Author

Can you try this same for doing it in  i.e.:- Design Summarize with Pivot Table.

Hope you get the result and we can check what difference in our steps.

Regards,

Renuka S