<?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 for each department in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-the-latest-value-for-each-department/m-p/1332574#M822448</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be like as at attached file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andrey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Aug 2017 07:21:03 GMT</pubDate>
    <dc:creator>ahaahaaha</dc:creator>
    <dc:date>2017-08-02T07:21:03Z</dc:date>
    <item>
      <title>Get the latest value for each department</title>
      <link>https://community.qlik.com/t5/QlikView/Get-the-latest-value-for-each-department/m-p/1332572#M822446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created three Excel(sale1, sale2, sale3), each one contains every department's sales value.&lt;/P&gt;&lt;P&gt;First, I need to load these Excel to QV one by one with script.&lt;/P&gt;&lt;P&gt;Second, I need to get the latest value from each department.&lt;/P&gt;&lt;P&gt;The latest value means the last time I imported to QV, as in bellow's screenshot,&lt;/P&gt;&lt;P&gt;the No.3 group means the latest value.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="172142" alt="Image 1.png" class="jive-image image-1" src="/legacyfs/online/172142_Image 1.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you can see that, in the original Excel, there's no timestamp for each department sales data.&lt;/P&gt;&lt;P&gt;So I created one column named Key in QV marked as a timestamp in order to distinguish them.&lt;/P&gt;&lt;P&gt;Once the Key was created, I can achieve my purpose, just obtain the maximum Key number for each department,&lt;/P&gt;&lt;P&gt;then the latest value is easy to get.&lt;/P&gt;&lt;P&gt;However, after I finished the expression, the chart display nothing.&lt;/P&gt;&lt;P&gt;I'm not sure what is going on with my expression, does someone could help me out?&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-the-latest-value-for-each-department/m-p/1332572#M822446</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Get the latest value for each department</title>
      <link>https://community.qlik.com/t5/QlikView/Get-the-latest-value-for-each-department/m-p/1332573#M822447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be you need this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FirstSortedValue(Value, Department) as FirstValue&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2017 07:14:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-the-latest-value-for-each-department/m-p/1332573#M822447</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-08-02T07:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Get the latest value for each department</title>
      <link>https://community.qlik.com/t5/QlikView/Get-the-latest-value-for-each-department/m-p/1332574#M822448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be like as at attached file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andrey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2017 07:21:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-the-latest-value-for-each-department/m-p/1332574#M822448</guid>
      <dc:creator>ahaahaaha</dc:creator>
      <dc:date>2017-08-02T07:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Get the latest value for each department</title>
      <link>https://community.qlik.com/t5/QlikView/Get-the-latest-value-for-each-department/m-p/1332575#M822449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Dimension : Department&lt;/P&gt;&lt;P&gt;Expression : &lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;FirstSortedValue&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&gt;,-&lt;SPAN style="color: #800000;"&gt;Key&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/172146_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Antonio&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2017 07:22:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-the-latest-value-for-each-department/m-p/1332575#M822449</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-08-02T07:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Get the latest value for each department</title>
      <link>https://community.qlik.com/t5/QlikView/Get-the-latest-value-for-each-department/m-p/1332576#M822450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi Andrey&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;It works, quite thanks.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I check your expression:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;Key={"$(=FirstSortedValue({&amp;lt;Department={'TMS1'}&amp;gt;} Key, -Key))"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Could you help to tell me what does this statement mean?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2017 07:35:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-the-latest-value-for-each-department/m-p/1332576#M822450</guid>
      <dc:creator />
      <dc:date>2017-08-02T07:35:53Z</dc:date>
    </item>
  </channel>
</rss>

