<?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: Calculate sum amount based on Date conditions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-sum-amount-based-on-Date-conditions/m-p/1555320#M440647</link>
    <description>&lt;P&gt;&lt;SPAN&gt;=Sum(if(date&amp;gt;=calendarObject1 and date &amp;lt;=calendarObject1,&lt;/SPAN&gt;&lt;SPAN&gt;amount_pg))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;date (is my date of course) but&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;what do you mean by&amp;nbsp;calendarObject1&amp;nbsp; : is undifined for Qlik sense and i should correct my syntax. So , the problem how to set the two dates in choice into 2 variables ? this is what we need : sur a simple configuration we must do it ? any help&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Mar 2019 11:24:21 GMT</pubDate>
    <dc:creator>ahmadov_10</dc:creator>
    <dc:date>2019-03-12T11:24:21Z</dc:date>
    <item>
      <title>Calculate sum amount based on Date conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-sum-amount-based-on-Date-conditions/m-p/1555290#M440645</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;i tried to work to calculate the sum(amount_pg) between the two dates in calendar choices (with Date range picker) . but when i modify the date filters , any modification for the the sum amount is maked to satisfy the conditions.&lt;/P&gt;&lt;P&gt;Any help please for a nice practice , method , extension to calculate sum based on dates condition ( i tried many but don't find the solution yet)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="qq1.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/7774i4FE207F9A50D4BB6/image-size/large?v=v2&amp;amp;px=999" role="button" title="qq1.PNG" alt="qq1.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="qq2.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/7775iD8648AA46F9799C3/image-size/large?v=v2&amp;amp;px=999" role="button" title="qq2.PNG" alt="qq2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 10:35:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-sum-amount-based-on-Date-conditions/m-p/1555290#M440645</guid>
      <dc:creator>ahmadov_10</dc:creator>
      <dc:date>2019-03-12T10:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate sum amount based on Date conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-sum-amount-based-on-Date-conditions/m-p/1555310#M440646</link>
      <description>&lt;P&gt;Have you inserted if condition properly?&lt;/P&gt;&lt;P&gt;=Sum(if(date&amp;gt;=calendarObject1 and date &amp;lt;=calendarObject1,&lt;SPAN&gt;amount_pg))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 11:02:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-sum-amount-based-on-Date-conditions/m-p/1555310#M440646</guid>
      <dc:creator>Shubham_Deshmukh</dc:creator>
      <dc:date>2019-03-12T11:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate sum amount based on Date conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-sum-amount-based-on-Date-conditions/m-p/1555320#M440647</link>
      <description>&lt;P&gt;&lt;SPAN&gt;=Sum(if(date&amp;gt;=calendarObject1 and date &amp;lt;=calendarObject1,&lt;/SPAN&gt;&lt;SPAN&gt;amount_pg))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;date (is my date of course) but&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;what do you mean by&amp;nbsp;calendarObject1&amp;nbsp; : is undifined for Qlik sense and i should correct my syntax. So , the problem how to set the two dates in choice into 2 variables ? this is what we need : sur a simple configuration we must do it ? any help&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 11:24:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-sum-amount-based-on-Date-conditions/m-p/1555320#M440647</guid>
      <dc:creator>ahmadov_10</dc:creator>
      <dc:date>2019-03-12T11:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate sum amount based on Date conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-sum-amount-based-on-Date-conditions/m-p/1555321#M440648</link>
      <description>Hi,&lt;BR /&gt;When you use Date range picker you use one Data field: for example Date.&lt;BR /&gt;In this case for correct calculation you should have min and max date from picker, in your example is:&lt;BR /&gt;min = 01/01/2018 and max 31/07/2018&lt;BR /&gt;For this you should create two variables MinDate: Min(Date) and MaxDate: Max(Date)&lt;BR /&gt;After this you can use variables in your set expressions:&lt;BR /&gt;sum({&amp;lt;Date = {"&amp;gt;=$(MinDate)&amp;lt;=$(MaxDate)"}&amp;gt;}amount_pg)&lt;BR /&gt;Thanks,&lt;BR /&gt;Vitalii</description>
      <pubDate>Tue, 12 Mar 2019 11:24:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-sum-amount-based-on-Date-conditions/m-p/1555321#M440648</guid>
      <dc:creator>vitaliichupryna</dc:creator>
      <dc:date>2019-03-12T11:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate sum amount based on Date conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-sum-amount-based-on-Date-conditions/m-p/1555329#M440649</link>
      <description>&lt;P&gt;I meant startDate and endDate which you used for calendar,&lt;BR /&gt;=Sum(if(date&amp;gt;=vStartDate and date &amp;lt;=vEndDate,amount_pg))&lt;BR /&gt;//date - your database date&lt;BR /&gt;//vStartDate and vEndDate are variables which you have used in calendars&lt;BR /&gt;&lt;BR /&gt;As Vitalii suggested, you can also use set analysis for that,&lt;BR /&gt;=sum({&amp;lt;Date = {"&amp;gt;=$(vStartDate )&amp;lt;=$(vEndDate)"}&amp;gt;}amount_pg)&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 11:36:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-sum-amount-based-on-Date-conditions/m-p/1555329#M440649</guid>
      <dc:creator>Shubham_Deshmukh</dc:creator>
      <dc:date>2019-03-12T11:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate sum amount based on Date conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-sum-amount-based-on-Date-conditions/m-p/1555351#M440651</link>
      <description>&lt;P&gt;Thanks for your answer but&amp;nbsp; I still having problem : i make this configuration to the date range picker and my text with measure .&amp;nbsp; DATFCH : date orders / MNTFCH : amount orders&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cc1.PNG" style="width: 658px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/7785iAA33BB1680472B36/image-size/large?v=v2&amp;amp;px=999" role="button" title="cc1.PNG" alt="cc1.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cc2.PNG" style="width: 318px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/7786iD49DBA4706F5C954/image-size/large?v=v2&amp;amp;px=999" role="button" title="cc2.PNG" alt="cc2.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cc3.PNG" style="width: 856px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/7787i878F260F0CC1E56C/image-size/large?v=v2&amp;amp;px=999" role="button" title="cc3.PNG" alt="cc3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But i still having the same amount &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 12:00:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-sum-amount-based-on-Date-conditions/m-p/1555351#M440651</guid>
      <dc:creator>ahmadov_10</dc:creator>
      <dc:date>2019-03-12T12:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate sum amount based on Date conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-sum-amount-based-on-Date-conditions/m-p/1555485#M440661</link>
      <description>&lt;P&gt;to understand me more : i need to calculate my sum(MNTFCH)&amp;nbsp;dynamically , based on the dates in filter from the date range picker (or other extension object , the essential : finding solution)&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 15:11:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-sum-amount-based-on-Date-conditions/m-p/1555485#M440661</guid>
      <dc:creator>ahmadov_10</dc:creator>
      <dc:date>2019-03-12T15:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate sum amount based on Date conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-sum-amount-based-on-Date-conditions/m-p/1555820#M440725</link>
      <description>You can use my solution</description>
      <pubDate>Wed, 13 Mar 2019 09:10:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-sum-amount-based-on-Date-conditions/m-p/1555820#M440725</guid>
      <dc:creator>vitaliichupryna</dc:creator>
      <dc:date>2019-03-13T09:10:28Z</dc:date>
    </item>
  </channel>
</rss>

