<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Pixel Perfect Cross Tab Global Totals in Reporting Service &amp; Alerting</title>
    <link>https://community.qlik.com/t5/Reporting-Service-Alerting/Pixel-Perfect-Cross-Tab-Global-Totals/m-p/2546649#M2764</link>
    <description>&lt;P&gt;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.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are some more robust solutions to handle ratios/percentages in Cross Tab totals, moving away from manual labels.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;1. The Best Practice: Pre-calculate in Qlik Sense/View&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The most reliable solution is to calculate the final percentages or ratios within your &lt;STRONG&gt;Qlik script or data model&lt;/STRONG&gt; before bringing the data into NPrinting.&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;&lt;STRONG&gt;Why:&lt;/STRONG&gt; NPrinting is designed to report data, not perform complex analytics.&lt;/LI&gt;
 &lt;LI&gt;&lt;STRONG&gt;How:&lt;/STRONG&gt; In your Qlik load script, calculate RatioField = [Numerator] / [Denominator]. Then, in Pixel Perfect, simply use Sum(RatioField) or Avg(RatioField) if appropriate, or use the pre-calculated total row from Qlik.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;2. Solution: Create a "Calculated Field" in the Designer&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;You can create a new formula within the Pixel Perfect designer that calculates the ratio, rather than using the default sum behavior.&lt;/P&gt;
&lt;OL&gt;
 &lt;LI&gt;Open the Level node in the Pixel Perfect template.&lt;/LI&gt;
 &lt;LI&gt;Right-click on the data row (Table Row) and select &lt;STRONG&gt;Add a Calculated Field&lt;/STRONG&gt;.&lt;/LI&gt;
 &lt;LI&gt;Set the expression to your formula, for example: [FieldA] / [FieldB] (using the data sources).&lt;/LI&gt;
 &lt;LI&gt;Drag this new calculated field into the cell where the percentage is needed.&lt;/LI&gt;
 &lt;LI&gt;&lt;STRONG&gt;Crucial Step:&lt;/STRONG&gt; Select the field, go to the property panel, and ensure the summary behavior is set to handle the formula rather than just Sum.&amp;nbsp;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;STRONG&gt;3. Solution: Use the BeforePrint Event&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;For more advanced control, you can use the BeforePrint event of the specific Total Cell to calculate the ratio based on raw data.&lt;/P&gt;
&lt;OL&gt;
 &lt;LI&gt;Select the Total Cell cell.&lt;/LI&gt;
 &lt;LI&gt;Open the &lt;STRONG&gt;Scripts&lt;/STRONG&gt; section in the Properties panel and select BeforePrint.&lt;/LI&gt;
 &lt;LI&gt;Use the Summary function to get the values from the raw data and calculate the ratio.
  &lt;UL&gt;
   &lt;LI&gt;&lt;I&gt;Example:&lt;/I&gt; e.Value = GetCurrentColumnValue("Num") / GetCurrentColumnValue("Denom") (Syntax varies slightly based on the specific DevExpress version underlying NPrinting).&lt;/LI&gt;
  &lt;/UL&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;STRONG&gt;Summary Checklist&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;&lt;STRONG&gt;Avoid:&lt;/STRONG&gt; Using the default Sum function on a pre-calculated percentage (e.g., Sum(0.1 + 0.2 + 0.3) will give 0.6 instead of the required 0.2 average).&lt;/LI&gt;
 &lt;LI&gt;&lt;STRONG&gt;Use:&lt;/STRONG&gt; Pre-calculated fields or calculated formulas inside the template.&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Fri, 10 Apr 2026 19:29:02 GMT</pubDate>
    <dc:creator>Greg_Taffer</dc:creator>
    <dc:date>2026-04-10T19:29:02Z</dc:date>
    <item>
      <title>Pixel Perfect Cross Tab Global Totals</title>
      <link>https://community.qlik.com/t5/Reporting-Service-Alerting/Pixel-Perfect-Cross-Tab-Global-Totals/m-p/2546624#M2763</link>
      <description>&lt;P&gt;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)".&lt;BR /&gt;In fact, the total is always calculated as aggregation of the details rows.&lt;BR /&gt;This is an important limitation, as Cross Tab can not be used with percentages or ratios.&lt;/P&gt;&lt;P&gt;The only workaround seems to suppress the total rows and manually add totals labels after or before the object.&lt;BR /&gt;Does anyone has smarter solutions?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;&lt;P&gt;Paolo&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2026 10:26:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Reporting-Service-Alerting/Pixel-Perfect-Cross-Tab-Global-Totals/m-p/2546624#M2763</guid>
      <dc:creator>paolo_cordini</dc:creator>
      <dc:date>2026-04-10T10:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Pixel Perfect Cross Tab Global Totals</title>
      <link>https://community.qlik.com/t5/Reporting-Service-Alerting/Pixel-Perfect-Cross-Tab-Global-Totals/m-p/2546649#M2764</link>
      <description>&lt;P&gt;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.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are some more robust solutions to handle ratios/percentages in Cross Tab totals, moving away from manual labels.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;1. The Best Practice: Pre-calculate in Qlik Sense/View&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The most reliable solution is to calculate the final percentages or ratios within your &lt;STRONG&gt;Qlik script or data model&lt;/STRONG&gt; before bringing the data into NPrinting.&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;&lt;STRONG&gt;Why:&lt;/STRONG&gt; NPrinting is designed to report data, not perform complex analytics.&lt;/LI&gt;
 &lt;LI&gt;&lt;STRONG&gt;How:&lt;/STRONG&gt; In your Qlik load script, calculate RatioField = [Numerator] / [Denominator]. Then, in Pixel Perfect, simply use Sum(RatioField) or Avg(RatioField) if appropriate, or use the pre-calculated total row from Qlik.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;2. Solution: Create a "Calculated Field" in the Designer&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;You can create a new formula within the Pixel Perfect designer that calculates the ratio, rather than using the default sum behavior.&lt;/P&gt;
&lt;OL&gt;
 &lt;LI&gt;Open the Level node in the Pixel Perfect template.&lt;/LI&gt;
 &lt;LI&gt;Right-click on the data row (Table Row) and select &lt;STRONG&gt;Add a Calculated Field&lt;/STRONG&gt;.&lt;/LI&gt;
 &lt;LI&gt;Set the expression to your formula, for example: [FieldA] / [FieldB] (using the data sources).&lt;/LI&gt;
 &lt;LI&gt;Drag this new calculated field into the cell where the percentage is needed.&lt;/LI&gt;
 &lt;LI&gt;&lt;STRONG&gt;Crucial Step:&lt;/STRONG&gt; Select the field, go to the property panel, and ensure the summary behavior is set to handle the formula rather than just Sum.&amp;nbsp;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;STRONG&gt;3. Solution: Use the BeforePrint Event&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;For more advanced control, you can use the BeforePrint event of the specific Total Cell to calculate the ratio based on raw data.&lt;/P&gt;
&lt;OL&gt;
 &lt;LI&gt;Select the Total Cell cell.&lt;/LI&gt;
 &lt;LI&gt;Open the &lt;STRONG&gt;Scripts&lt;/STRONG&gt; section in the Properties panel and select BeforePrint.&lt;/LI&gt;
 &lt;LI&gt;Use the Summary function to get the values from the raw data and calculate the ratio.
  &lt;UL&gt;
   &lt;LI&gt;&lt;I&gt;Example:&lt;/I&gt; e.Value = GetCurrentColumnValue("Num") / GetCurrentColumnValue("Denom") (Syntax varies slightly based on the specific DevExpress version underlying NPrinting).&lt;/LI&gt;
  &lt;/UL&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;STRONG&gt;Summary Checklist&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;&lt;STRONG&gt;Avoid:&lt;/STRONG&gt; Using the default Sum function on a pre-calculated percentage (e.g., Sum(0.1 + 0.2 + 0.3) will give 0.6 instead of the required 0.2 average).&lt;/LI&gt;
 &lt;LI&gt;&lt;STRONG&gt;Use:&lt;/STRONG&gt; Pre-calculated fields or calculated formulas inside the template.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Fri, 10 Apr 2026 19:29:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Reporting-Service-Alerting/Pixel-Perfect-Cross-Tab-Global-Totals/m-p/2546649#M2764</guid>
      <dc:creator>Greg_Taffer</dc:creator>
      <dc:date>2026-04-10T19:29:02Z</dc:date>
    </item>
  </channel>
</rss>

