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: 
sogloqlik
Creator II
Creator II

Nprinting - Merge Cells in table in HTML

Hi all.


I Have a Table which holds for each Product category the top 5 products.
A basic strait table is no problem (file attached), but I want to merge the Category cells for each category.
It looks s like a pivot but supposed to be much easier.
When I try to use the row span, I get the most bizarre result
I've attached the HTML code also. some of the names are in Hebrew but row span appears only once
Any help would be appreciated.

Thx.

 

Labels (2)
1 Solution

Accepted Solutions
Ruggero_Piccoli
Support
Support

Hi,

You can evaluate to use Levels for the Category field and nested HTML tables:

Ruggero_Piccoli_0-1653399478395.png

Result:

Ruggero_Piccoli_1-1653399511865.png

HTML code:

<html>
    <body>
          %%Year_Level%%   
          <table border="1px" bordercolor="#00C853">
          <tr>
          <td>%%Year%%</td>
          <td>
              <table>
              <tr>
              <td>%%Country%%</td>
              <td>%%Total Sales%%</td>
              </tr>
              </table>
          </td>
          </tr>
            </table>
            %%/Year_Level%%

    </body>
</html>

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

4 Replies
Ruggero_Piccoli
Support
Support

Hi,

You can evaluate to use Levels for the Category field and nested HTML tables:

Ruggero_Piccoli_0-1653399478395.png

Result:

Ruggero_Piccoli_1-1653399511865.png

HTML code:

<html>
    <body>
          %%Year_Level%%   
          <table border="1px" bordercolor="#00C853">
          <tr>
          <td>%%Year%%</td>
          <td>
              <table>
              <tr>
              <td>%%Country%%</td>
              <td>%%Total Sales%%</td>
              </tr>
              </table>
          </td>
          </tr>
            </table>
            %%/Year_Level%%

    </body>
</html>

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

What SR of May 2021 are you on?

sogloqlik
Creator II
Creator II
Author

Hi David.

 

Our version is : 21.14.3.0

sogloqlik
Creator II
Creator II
Author

Hi.

 

Merge cells would have been better but for now it is good enough.

Thank you