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

Create multiple columns from rows of data

Hello,

I have a table with 2 column Name and Status(can have x or -).
Printing the table as it is will print 2 columns on several pages. That is not the desiered output format.
I would like the fields to be printed horizontaly and not verticaly.

Example:

Name Status
A   X
B   X
C    -
D   X
F    -
E    -
M   -
N   X

Expected output:
A    X    B    X    C    -    D    X
F     -    E     -    M    -    N    X

I'm Using latest NPrinting version. Thank you.

Labels (3)
1 Solution

Accepted Solutions
Ruggero_Piccoli
Support
Support

Hi,

Qlik NPrinting May 2021 SR1 is out of support, so schedule the upgrade to a supported version. In the text you stated that you are using latest that is May 2023 SR2. In this case please use the right label, thanks. 

Qlik NPrinting works by column: you place the tag of a table or tag of columns of a table and they are expanded vertically with the data. It is not possible to expand them horizontally. 

You could:

- If you are developing an Excel template, add the column tags in an hidden Excel sheet and use Excel features to create a visible sheet with the layout you want.  In this case you can use the Excel function =TRANSPOSE(XX:YY)

- create a table in the source app with that layout, refresh the connection cache and import that table

- import the source object in the Cells node then drag and drop each single cell in the final position. This is feasible only if the source object has a limited size because you have to manually manage all cells and it is positional so if you change the order in the source table you have to update the tags in the template according

- if you use VBA macros remember that related code is only copied to the generated reports but never executed

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

2 Replies
Ruggero_Piccoli
Support
Support

Hi,

Qlik NPrinting May 2021 SR1 is out of support, so schedule the upgrade to a supported version. In the text you stated that you are using latest that is May 2023 SR2. In this case please use the right label, thanks. 

Qlik NPrinting works by column: you place the tag of a table or tag of columns of a table and they are expanded vertically with the data. It is not possible to expand them horizontally. 

You could:

- If you are developing an Excel template, add the column tags in an hidden Excel sheet and use Excel features to create a visible sheet with the layout you want.  In this case you can use the Excel function =TRANSPOSE(XX:YY)

- create a table in the source app with that layout, refresh the connection cache and import that table

- import the source object in the Cells node then drag and drop each single cell in the final position. This is feasible only if the source object has a limited size because you have to manually manage all cells and it is positional so if you change the order in the source table you have to update the tags in the template according

- if you use VBA macros remember that related code is only copied to the generated reports but never executed

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

Excel function =TRANSPOSE(XX:YY) works.

 

Thank you!