<?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 Sum at different levels - Qlik Sense in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Sum-at-different-levels-Qlik-Sense/m-p/2548229#M110156</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I&amp;nbsp; have a strange requirement and wanting to see if anyone has a better solution to do this in the Qlik Sense load script rather than the front end because we might want to reuse this at multiple places.&lt;/P&gt;
&lt;P&gt;Scenario:&lt;BR /&gt;I have a table with values as below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Rashmi1_0-1777579954256.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/188092iAC152206C0BDE579/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Rashmi1_0-1777579954256.png" alt="Rashmi1_0-1777579954256.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I need to calculate performance as total of all payments for a department (irrespective of the month) + credit for the month the user selects (max month).&lt;BR /&gt;&lt;BR /&gt;Example: When user selects Jan 2025,&amp;nbsp;Department A needs to have a total of all payments + Credit value for the month the user selected&lt;BR /&gt;&lt;BR /&gt;In this case it would be&amp;nbsp;&lt;BR /&gt;Department A (Jan 2025) - 7800 + 100 = 8800&lt;BR /&gt;&lt;BR /&gt;Is this even a possible thing to do in Qlik Sense?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Apr 2026 20:16:02 GMT</pubDate>
    <dc:creator>Rashmi1</dc:creator>
    <dc:date>2026-04-30T20:16:02Z</dc:date>
    <item>
      <title>Sum at different levels - Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-at-different-levels-Qlik-Sense/m-p/2548229#M110156</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I&amp;nbsp; have a strange requirement and wanting to see if anyone has a better solution to do this in the Qlik Sense load script rather than the front end because we might want to reuse this at multiple places.&lt;/P&gt;
&lt;P&gt;Scenario:&lt;BR /&gt;I have a table with values as below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Rashmi1_0-1777579954256.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/188092iAC152206C0BDE579/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Rashmi1_0-1777579954256.png" alt="Rashmi1_0-1777579954256.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I need to calculate performance as total of all payments for a department (irrespective of the month) + credit for the month the user selects (max month).&lt;BR /&gt;&lt;BR /&gt;Example: When user selects Jan 2025,&amp;nbsp;Department A needs to have a total of all payments + Credit value for the month the user selected&lt;BR /&gt;&lt;BR /&gt;In this case it would be&amp;nbsp;&lt;BR /&gt;Department A (Jan 2025) - 7800 + 100 = 8800&lt;BR /&gt;&lt;BR /&gt;Is this even a possible thing to do in Qlik Sense?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2026 20:16:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-at-different-levels-Qlik-Sense/m-p/2548229#M110156</guid>
      <dc:creator>Rashmi1</dc:creator>
      <dc:date>2026-04-30T20:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sum at different levels - Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-at-different-levels-Qlik-Sense/m-p/2548247#M110160</link>
      <description>&lt;P&gt;I think I might have a couple solutions based on your table. It looks like front-end or the master measure would make the most sense since the script option would still require you to add the expression as a measure.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. &lt;/STRONG&gt;&lt;STRONG&gt;Just front-end in your measure, or create as master measure to re-use in other apps&lt;/STRONG&gt;&lt;BR /&gt;SUM({&amp;lt;Department=&amp;gt;} TOTAL [Payments]) + SUM([Credit])&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. &lt;/STRONG&gt;&lt;STRONG&gt;In Script&lt;/STRONG&gt;&lt;BR /&gt;MonthlyPayments:&lt;BR /&gt;LOAD&lt;BR /&gt;Month,&lt;BR /&gt;SUM(Payments) AS TotalPayments_Month&lt;BR /&gt;RESIDENT YourTable&lt;BR /&gt;GROUP BY Month;&lt;/P&gt;&lt;P&gt;LEFT JOIN (YourTable)&lt;BR /&gt;LOAD&lt;BR /&gt;Month,&lt;BR /&gt;TotalPayments_Month&lt;BR /&gt;RESIDENT MonthlyPayments;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Measure in table&lt;/STRONG&gt;&lt;BR /&gt;SUM(TotalPayments_Month) + SUM(Credit)&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2026 13:35:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-at-different-levels-Qlik-Sense/m-p/2548247#M110160</guid>
      <dc:creator>JR4</dc:creator>
      <dc:date>2026-05-01T13:35:52Z</dc:date>
    </item>
  </channel>
</rss>

