<?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: Add a value considering the date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Add-a-value-considering-the-date/m-p/1748591#M455441</link>
    <description>&lt;P&gt;try this:&lt;BR /&gt;create a chart, dims:&amp;nbsp; %KeySupplierum, Period&lt;BR /&gt;expression:&amp;nbsp;&amp;nbsp;=sum([Total Amount]) + IF(Period=aggr(NODISTINCT max(Period),%_Key_SupplierNum), Charges,0)&lt;BR /&gt;&lt;BR /&gt;If the period is = to the latest period for the Supplier, then add charge&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 16:27:27 GMT</pubDate>
    <dc:creator>edwin</dc:creator>
    <dc:date>2020-09-30T16:27:27Z</dc:date>
    <item>
      <title>Add a value considering the date</title>
      <link>https://community.qlik.com/t5/QlikView/Add-a-value-considering-the-date/m-p/1736720#M455440</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I would like to add the charges fees to the amount value having the oldest period.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For example:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChargesFeesIssue.PNG" style="width: 593px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/39190i30E94F4E08EC147B/image-size/large?v=v2&amp;amp;px=999" role="button" title="ChargesFeesIssue.PNG" alt="ChargesFeesIssue.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;gt; The expected result :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Period&amp;nbsp; &amp;nbsp;|&lt;/STRONG&gt; &lt;STRONG&gt;Country |&lt;/STRONG&gt; &lt;STRONG&gt;%_Key_SupplierNum |&lt;/STRONG&gt; &lt;STRONG&gt;%_Key_SupplierInv | Total&lt;/STRONG&gt; &lt;STRONG&gt;Amount&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;202002&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;|&amp;nbsp; &amp;nbsp;&lt;/STRONG&gt; IT&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;STRONG&gt;|&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;S950205&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;STRONG&gt;|&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1JD087134&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;STRONG&gt;|&amp;nbsp; &amp;nbsp;&lt;/STRONG&gt;36263,01&lt;/P&gt;&lt;P&gt;202003&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;|&amp;nbsp; &amp;nbsp;&lt;/STRONG&gt; IT&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;STRONG&gt;|&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;S950205&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;STRONG&gt;|&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1JD087134&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;STRONG&gt;|&amp;nbsp; &amp;nbsp;&lt;/STRONG&gt;569,52&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;gt; My current result :&lt;/STRONG&gt;&lt;EM&gt;(see the last column in the table below)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChargesFeesNot.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/39191i761CEC1E7D9747A2/image-size/large?v=v2&amp;amp;px=999" role="button" title="ChargesFeesNot.PNG" alt="ChargesFeesNot.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Note : I also tried to calculate that directly in the script using the function FirstSortedValue. But, the charges fees are added to all the rows in the table instead of only the row with the oldest period.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please could you help me to resolve this problematic?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:07:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-a-value-considering-the-date/m-p/1736720#M455440</guid>
      <dc:creator>Black_Hole</dc:creator>
      <dc:date>2024-11-16T00:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Add a value considering the date</title>
      <link>https://community.qlik.com/t5/QlikView/Add-a-value-considering-the-date/m-p/1748591#M455441</link>
      <description>&lt;P&gt;try this:&lt;BR /&gt;create a chart, dims:&amp;nbsp; %KeySupplierum, Period&lt;BR /&gt;expression:&amp;nbsp;&amp;nbsp;=sum([Total Amount]) + IF(Period=aggr(NODISTINCT max(Period),%_Key_SupplierNum), Charges,0)&lt;BR /&gt;&lt;BR /&gt;If the period is = to the latest period for the Supplier, then add charge&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 16:27:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-a-value-considering-the-date/m-p/1748591#M455441</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-09-30T16:27:27Z</dc:date>
    </item>
  </channel>
</rss>

