<?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 value for a specific date range from date dimension in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Sum-value-for-a-specific-date-range-from-date-dimension/m-p/1751091#M57818</link>
    <description>&lt;P&gt;Hello All&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following scenario.&lt;/P&gt;&lt;P&gt;Table1&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="G_G_2-1602250093596.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42003i5E0883911FA876C4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="G_G_2-1602250093596.png" alt="G_G_2-1602250093596.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 2&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="G_G_1-1602249800174.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42002i1332E7BFC4B647D8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="G_G_1-1602249800174.png" alt="G_G_1-1602249800174.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The above two tables are linked with DATE_KEY in Qlik data model&amp;nbsp;&lt;/P&gt;&lt;P&gt;when the user selects "MONTH_NAME" as 2016-03 in the filter , then i have to sum "Amount" for the range of START_DATE_QTD_KEY to END_DATE_QTD_KEY.&amp;nbsp; i.e from 1 to 3 date key from the Table 2 , sum of amount should be 60&lt;/P&gt;&lt;P&gt;Can any one help me in this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;G&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 01:19:28 GMT</pubDate>
    <dc:creator>G_G</dc:creator>
    <dc:date>2024-11-16T01:19:28Z</dc:date>
    <item>
      <title>Sum value for a specific date range from date dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-value-for-a-specific-date-range-from-date-dimension/m-p/1751091#M57818</link>
      <description>&lt;P&gt;Hello All&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following scenario.&lt;/P&gt;&lt;P&gt;Table1&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="G_G_2-1602250093596.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42003i5E0883911FA876C4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="G_G_2-1602250093596.png" alt="G_G_2-1602250093596.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 2&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="G_G_1-1602249800174.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42002i1332E7BFC4B647D8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="G_G_1-1602249800174.png" alt="G_G_1-1602249800174.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The above two tables are linked with DATE_KEY in Qlik data model&amp;nbsp;&lt;/P&gt;&lt;P&gt;when the user selects "MONTH_NAME" as 2016-03 in the filter , then i have to sum "Amount" for the range of START_DATE_QTD_KEY to END_DATE_QTD_KEY.&amp;nbsp; i.e from 1 to 3 date key from the Table 2 , sum of amount should be 60&lt;/P&gt;&lt;P&gt;Can any one help me in this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;G&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:19:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-value-for-a-specific-date-range-from-date-dimension/m-p/1751091#M57818</guid>
      <dc:creator>G_G</dc:creator>
      <dc:date>2024-11-16T01:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Sum value for a specific date range from date dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-value-for-a-specific-date-range-from-date-dimension/m-p/1751116#M57821</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/127465"&gt;@G_G&lt;/a&gt;&amp;nbsp; try below.&lt;/P&gt;&lt;P&gt;Create two variables on frond end like below&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;vSTART_DATE_QTD_KEY = max(START_DATE_QTD_KEY)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;vEND_DATE_QTD_KEY =max(END_DATE_QTD_KEY)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then try below expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=Sum({&amp;lt;MONTH_NAME,DATE_KEY={"&amp;gt;=$(vSTART_DATE_QTD_KEY)&amp;lt;=$(vEND_DATE_QTD_KEY)"}&amp;gt;}Amount)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 14:16:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-value-for-a-specific-date-range-from-date-dimension/m-p/1751116#M57821</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-10-09T14:16:58Z</dc:date>
    </item>
  </channel>
</rss>

