<?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 amount on different date range in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-amount-on-different-date-range/m-p/1549800#M744339</link>
    <description>&lt;P&gt;please check the attached&lt;/P&gt;</description>
    <pubDate>Wed, 27 Feb 2019 12:07:28 GMT</pubDate>
    <dc:creator>anushree1</dc:creator>
    <dc:date>2019-02-27T12:07:28Z</dc:date>
    <item>
      <title>Calculate amount on different date range</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-amount-on-different-date-range/m-p/1549738#M744337</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;I have a case about calculation based on date valid range. As you can see below, There are&amp;nbsp;Transaction&amp;nbsp;and Validation Table, then I try to get &lt;EM&gt;sum(QTY*HARGA)&lt;/EM&gt; based on date valid range of &lt;EM&gt;PRODUCT A&lt;/EM&gt;, in the final result of &lt;EM&gt;sum(QTY*HARGA)&lt;/EM&gt;&amp;nbsp; must be 540000. But&amp;nbsp;after I did the calculation the result is 1100000. I was confused why the result is not correct, so I make a new table to check in detail, and I saw there are some &lt;EM&gt;TGL TRANSAKSI&lt;/EM&gt; include even not in date valid range (GET_DateFrom).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Table Check.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/6860i1D452FEBB260CB5D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Table Check.PNG" alt="Table Check.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is how take out the&amp;nbsp;&lt;EM&gt;TGL TRANSAKSI&lt;/EM&gt;&amp;nbsp; which is "must not include"?&amp;nbsp; Does anyone have any advice?&amp;nbsp;&lt;BR /&gt;I attached the Qvw &amp;amp; data also. Hopefully, it can help.&lt;/P&gt;&lt;P&gt;Have a nice day, Febri.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:19:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-amount-on-different-date-range/m-p/1549738#M744337</guid>
      <dc:creator>febridwi</dc:creator>
      <dc:date>2024-11-16T04:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate amount on different date range</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-amount-on-different-date-range/m-p/1549767#M744338</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this calculated dimension and expression:&lt;/P&gt;&lt;P&gt;Dimension:=if(len(If([TGL TRANSAKSI] &amp;gt;= DateFrom and [TGL TRANSAKSI] &amp;lt; DateTo , DateFrom))&amp;gt;0,PRODUCT)&lt;/P&gt;&lt;P&gt;Exp:sum( {&amp;lt;[TGL TRANSAKSI]= {"&amp;gt;=$(DateFrom) &amp;lt;$(DateTo)"}&amp;gt;} QTY* HARGA)&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 11:25:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-amount-on-different-date-range/m-p/1549767#M744338</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2019-02-27T11:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate amount on different date range</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-amount-on-different-date-range/m-p/1549800#M744339</link>
      <description>&lt;P&gt;please check the attached&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 12:07:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-amount-on-different-date-range/m-p/1549800#M744339</guid>
      <dc:creator>anushree1</dc:creator>
      <dc:date>2019-02-27T12:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate amount on different date range</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-amount-on-different-date-range/m-p/1549867#M744340</link>
      <description>&lt;P&gt;You can try this also&lt;/P&gt;&lt;PRE&gt;Sum(If([TGL TRANSAKSI] &amp;gt;= DateFrom and [TGL TRANSAKSI] &amp;lt; DateTo, QTY*HARGA))&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Feb 2019 13:24:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-amount-on-different-date-range/m-p/1549867#M744340</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-27T13:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate amount on different date range</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-amount-on-different-date-range/m-p/1550176#M744341</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/50189"&gt;@anushree1&lt;/a&gt;&amp;nbsp;Thank you for the advice. unfortunately, when I calculate SUM(QTY) the result is not correct &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess because you use outer join. It corrects to get SUM(QTY*HARGA) but not for SUM(QTY)&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 02:42:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-amount-on-different-date-range/m-p/1550176#M744341</guid>
      <dc:creator>febridwi</dc:creator>
      <dc:date>2019-02-28T02:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate amount on different date range</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-amount-on-different-date-range/m-p/1550178#M744342</link>
      <description>&lt;P&gt;Great&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;It works. Thanks&amp;nbsp;a lot&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 02:59:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-amount-on-different-date-range/m-p/1550178#M744342</guid>
      <dc:creator>febridwi</dc:creator>
      <dc:date>2019-02-28T02:59:06Z</dc:date>
    </item>
  </channel>
</rss>

