Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
In the "Cross Tab" object of Pixel Perfect template designer, it seems not possible to have a global total defined, for instance as "sum(x)/sum(y)".
In fact, the total is always calculated as aggregation of the details rows.
This is an important limitation, as Cross Tab can not be used with percentages or ratios.
The only workaround seems to suppress the total rows and manually add totals labels after or before the object.
Does anyone has smarter solutions?
Thanks
Paolo
You are correct that the Pixel Perfect Cross Tab object in NPrinting/Qlik automatically aggregates detail rows rather than calculating a complex ratio (like a global) at the total level. The limitation arises because it performs a simple Sum of the results in the cells above.
Here are some more robust solutions to handle ratios/percentages in Cross Tab totals, moving away from manual labels.
1. The Best Practice: Pre-calculate in Qlik Sense/View
The most reliable solution is to calculate the final percentages or ratios within your Qlik script or data model before bringing the data into NPrinting.
2. Solution: Create a "Calculated Field" in the Designer
You can create a new formula within the Pixel Perfect designer that calculates the ratio, rather than using the default sum behavior.
3. Solution: Use the BeforePrint Event
For more advanced control, you can use the BeforePrint event of the specific Total Cell to calculate the ratio based on raw data.
Summary Checklist