There is a requirement from the business user that he need a pivot table in the email body which is automated from Nprinting (Nov 18)
Please note : I need pivot table code in HTML and don't want the image of the Qlik object in the email body.
Please help me with the solution .
Thanks and Regards
once you give us above we maybe be able to give you some indication if what you are trying to do is achievable
looking forward to hear back from you
Hi @vikasdesai ,
I agree with @Lech_Miszkiewicz .
You could also try to:
All details about the steps are documented in the official help site.
Hi @Ruggero_Piccoli , I had similar requirement and I had created HTML report as per the steps, but the HTML report doesn't give the same pivot structure as in Qlikview desktop rather gives as excel export format.
Can you suggest for having the exact Pivot format in HTML email report.
You need to do a lot more to get a pivot table look in HTML table as each of the rows in your html table would need to have dedicated inline formatting. There is no wizzard nor drag-drop solution. You need to code it in HTML and to be precise there is a lot of work to get it right.
How does your table need to look like? Sample of your pivot table would help to understand granularity of it, number of dimensions used etc.. Once we have sample, we may be able to mock something up and give you more accurate answer.
Hi @Lech_Miszkiewicz ,
Thanks for your response. Can you please share any sample you have to present HTML report for 3 dimensions with one dimension is pivoted and the HTML report should be exactly as same as pivot table we get in Qlikview desktop.
Hope am clear on my requirement.
HTML still is HTML also in Qlik NPrinting so you have its limitations. In Qlik NPrinting you can develop report templates in HTML that uses HTML features but it doesn't add new features to the HTML. So you have to use standard HTML features to create the report that you want.
Pivoted dimension would be very hard to do. I normally change it to straight table with set analysis mocking pivoted dimension
Then for dimension 1 & 2 I normally use row-span to create expression which i use in NPrinitng as a td tag in table which creates grouping on dimensional columns (see screenshot)
formula to create "pivot formula"column in Qlik app. This is very basic example to show you an idea on what can be achieved.
'<td rowspan="'&RowSpanNo_1&'">'&Concat(DISTINCT Dim1)&'</td>
one more question...
Pivoted dimension (the one which creates columns), how many distinct values do you expect to see in it on average?
I played little bit more with it and I think that i may have a solution for you as long as there is reasonable number of distinct values in pivoted dimension.
this is an example is result of what i came up with....I used QlikView but with Qlik Sense principles are the same
table no selections
result in nprinting
table selections applied
result in nprinting