<?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: Calculated total in group header in Qlik NPrinting</title>
    <link>https://community.qlik.com/t5/Qlik-NPrinting/Calculated-total-in-group-header/m-p/2049348#M38428</link>
    <description>&lt;P&gt;"standartd" sum works as expected.&lt;/P&gt;
&lt;P&gt;The problem i have is in a calculated total where i have to pick the first total (sum(qty, which correspond to the total q.ty of the details) and divide with the second total (sum(ship to)).&lt;/P&gt;
&lt;P&gt;So i have created a calculated field like below and put into the header but is not returning the correct value...&lt;/P&gt;
&lt;P&gt;What am i doing wrong?&lt;/P&gt;
&lt;P&gt;i already tried to sum( qty) / sum (ship to) but is not working...&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-03-15 08_45_05-Clipboard.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/102800i120AE5A17B6F3F6E/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-03-15 08_45_05-Clipboard.png" alt="2023-03-15 08_45_05-Clipboard.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Mar 2023 07:54:04 GMT</pubDate>
    <dc:creator>micheledenardi</dc:creator>
    <dc:date>2023-03-15T07:54:04Z</dc:date>
    <item>
      <title>Calculated total in group header</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Calculated-total-in-group-header/m-p/2048970#M38411</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;
&lt;P&gt;i have a pixel perfect report structured as below, with some nested levels.&lt;/P&gt;
&lt;P&gt;In the lower one i'm trying to create some total in the group header. Number 1, 2, 3 are simply a sum() of the details but the 4th total must be like: total 1 / total 2&lt;/P&gt;
&lt;P&gt;I've tried to create a calculated field but it's returning strange values... how to achieve this?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-03-14 13_11_50-mRemoteNG - confCons.xml - NPrinting.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/102706i54776C5B3916117F/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-03-14 13_11_50-mRemoteNG - confCons.xml - NPrinting.png" alt="2023-03-14 13_11_50-mRemoteNG - confCons.xml - NPrinting.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 12:17:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Calculated-total-in-group-header/m-p/2048970#M38411</guid>
      <dc:creator>micheledenardi</dc:creator>
      <dc:date>2023-03-14T12:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated total in group header</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Calculated-total-in-group-header/m-p/2049037#M38414</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I did a test on a single level and the total values are correct in both the group header and footer.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ruggero_Piccoli_0-1678800149030.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/102723i6DDAAEB22F06A28F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ruggero_Piccoli_0-1678800149030.png" alt="Ruggero_Piccoli_0-1678800149030.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Check that you set the correct summary function the Group as summary running.&lt;/P&gt;
&lt;P&gt;I did a test with nested levels and also in that case the totals are correct on both the group header and footer.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Be sure you added the group header from the correct level.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Ruggero&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 13:56:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Calculated-total-in-group-header/m-p/2049037#M38414</guid>
      <dc:creator>Ruggero_Piccoli</dc:creator>
      <dc:date>2023-03-14T13:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated total in group header</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Calculated-total-in-group-header/m-p/2049348#M38428</link>
      <description>&lt;P&gt;"standartd" sum works as expected.&lt;/P&gt;
&lt;P&gt;The problem i have is in a calculated total where i have to pick the first total (sum(qty, which correspond to the total q.ty of the details) and divide with the second total (sum(ship to)).&lt;/P&gt;
&lt;P&gt;So i have created a calculated field like below and put into the header but is not returning the correct value...&lt;/P&gt;
&lt;P&gt;What am i doing wrong?&lt;/P&gt;
&lt;P&gt;i already tried to sum( qty) / sum (ship to) but is not working...&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-03-15 08_45_05-Clipboard.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/102800i120AE5A17B6F3F6E/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-03-15 08_45_05-Clipboard.png" alt="2023-03-15 08_45_05-Clipboard.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 07:54:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Calculated-total-in-group-header/m-p/2049348#M38428</guid>
      <dc:creator>micheledenardi</dc:creator>
      <dc:date>2023-03-15T07:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated total in group header</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Calculated-total-in-group-header/m-p/2049363#M38429</link>
      <description>&lt;P&gt;i found the problem... i was summarize twice... one time in the calculated expression and another time in the group. So i keep only the sum() in the expression and now the result is correct!&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-03-15 09_20_19-Clipboard.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/102804iEBABF21636FEA90F/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-03-15 09_20_19-Clipboard.png" alt="2023-03-15 09_20_19-Clipboard.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 08:21:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Calculated-total-in-group-header/m-p/2049363#M38429</guid>
      <dc:creator>micheledenardi</dc:creator>
      <dc:date>2023-03-15T08:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated total in group header</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Calculated-total-in-group-header/m-p/2049369#M38430</link>
      <description>&lt;P&gt;I was writing you the same.&lt;/P&gt;
&lt;P&gt;Thanks for sharing the solution.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Ruggero&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 08:23:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Calculated-total-in-group-header/m-p/2049369#M38430</guid>
      <dc:creator>Ruggero_Piccoli</dc:creator>
      <dc:date>2023-03-15T08:23:57Z</dc:date>
    </item>
  </channel>
</rss>

