<?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: Get the latest value in a pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-the-latest-value-in-a-pivot-table/m-p/1799798#M1211583</link>
    <description>&lt;P&gt;Hi WalidChoukri&lt;/P&gt;&lt;P&gt;Have you solved this issue ?&lt;/P&gt;&lt;P&gt;I did a test and got it by adding a "flag" column LastDay, filled with yes or no. Then I tried this expression -&amp;nbsp; Sum({&amp;lt;LastDay = {"yes" }&amp;gt;}Quantity)&amp;nbsp;-out and it worked.&lt;/P&gt;&lt;P&gt;That's is just a suggestion, if you wish. Sometimes in Qlik is good to "solve" some issues in script/load time and then have the things more "prepared" for the visualizations.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Marcos&lt;/P&gt;</description>
    <pubDate>Thu, 15 Apr 2021 15:54:23 GMT</pubDate>
    <dc:creator>Marcos_Ferreira_dos_Santos</dc:creator>
    <dc:date>2021-04-15T15:54:23Z</dc:date>
    <item>
      <title>Get the latest value in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Get-the-latest-value-in-a-pivot-table/m-p/1798786#M1211492</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;I have a sample data like below :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WalidChoukri_0-1618234020786.png" style="width: 200px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/52818iEFFAD442DFCC82DC/image-size/small?v=v2&amp;amp;px=200" role="button" title="WalidChoukri_0-1618234020786.png" alt="WalidChoukri_0-1618234020786.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and I tried to represent the sum of quantity in a pivot table, the problem is i want to display the latest date data for each month and not the sum,when i collapse the table in each month.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WalidChoukri_1-1618234297018.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/52819i02A35DF9DF1DB66D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="WalidChoukri_1-1618234297018.png" alt="WalidChoukri_1-1618234297018.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WalidChoukri_2-1618234392746.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/52820i337ED80701C73E8F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="WalidChoukri_2-1618234392746.png" alt="WalidChoukri_2-1618234392746.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The required values : Article&amp;nbsp; Month&amp;nbsp; &amp;nbsp; Avril&amp;nbsp; &amp;nbsp; &amp;nbsp;Mai&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;15&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 25&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;13&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 17&lt;/P&gt;&lt;P&gt;I tried the following expression :&amp;nbsp;&amp;nbsp;Max(Aggr(Sum(Quantity) ,Month,Date,Article)) and i got this.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WalidChoukri_4-1618234797450.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/52822i39BB5126AB124425/image-size/medium?v=v2&amp;amp;px=400" role="button" title="WalidChoukri_4-1618234797450.png" alt="WalidChoukri_4-1618234797450.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I need an expression so instead of getting the maximum value for each month i get the latest one, any ideas ?&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 13:42:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-the-latest-value-in-a-pivot-table/m-p/1798786#M1211492</guid>
      <dc:creator>WalidChoukri</dc:creator>
      <dc:date>2021-04-12T13:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Get the latest value in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Get-the-latest-value-in-a-pivot-table/m-p/1799798#M1211583</link>
      <description>&lt;P&gt;Hi WalidChoukri&lt;/P&gt;&lt;P&gt;Have you solved this issue ?&lt;/P&gt;&lt;P&gt;I did a test and got it by adding a "flag" column LastDay, filled with yes or no. Then I tried this expression -&amp;nbsp; Sum({&amp;lt;LastDay = {"yes" }&amp;gt;}Quantity)&amp;nbsp;-out and it worked.&lt;/P&gt;&lt;P&gt;That's is just a suggestion, if you wish. Sometimes in Qlik is good to "solve" some issues in script/load time and then have the things more "prepared" for the visualizations.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Marcos&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 15:54:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-the-latest-value-in-a-pivot-table/m-p/1799798#M1211583</guid>
      <dc:creator>Marcos_Ferreira_dos_Santos</dc:creator>
      <dc:date>2021-04-15T15:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Get the latest value in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Get-the-latest-value-in-a-pivot-table/m-p/1800080#M1211598</link>
      <description>&lt;P&gt;You can solve this by using FirstSortedValue function like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FirstSortedValue(aggr(Sum(Quantity),Date,Article),-Date)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 16 Apr 2021 13:01:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-the-latest-value-in-a-pivot-table/m-p/1800080#M1211598</guid>
      <dc:creator>eddie_wagt</dc:creator>
      <dc:date>2021-04-16T13:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Get the latest value in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Get-the-latest-value-in-a-pivot-table/m-p/1800886#M1211672</link>
      <description>&lt;P&gt;Thank you so much it did work&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 10:38:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-the-latest-value-in-a-pivot-table/m-p/1800886#M1211672</guid>
      <dc:creator>WalidChoukri</dc:creator>
      <dc:date>2021-04-20T10:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Get the latest value in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Get-the-latest-value-in-a-pivot-table/m-p/1800887#M1211673</link>
      <description>&lt;P&gt;Thank you, i thought of doing a flag but the file I provided is just a sample, it'll be much difficult to do a flag with the database I have&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 10:40:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-the-latest-value-in-a-pivot-table/m-p/1800887#M1211673</guid>
      <dc:creator>WalidChoukri</dc:creator>
      <dc:date>2021-04-20T10:40:10Z</dc:date>
    </item>
  </channel>
</rss>

