<?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 Latest value require in the expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Latest-value-require-in-the-expression/m-p/56943#M9483</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;I require the last/Latest value of Amount on the basis Transaction Date :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below Function I have used in Set Anlaysis :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FirstSortedValue(Amount,-TransactionDate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But above when used in my code its not working.fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the attached set of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly let me know how we achieve one row with the current amount value as 250.17&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jun 2018 18:32:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-06-20T18:32:29Z</dc:date>
    <item>
      <title>Latest value require in the expression</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-value-require-in-the-expression/m-p/56943#M9483</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;I require the last/Latest value of Amount on the basis Transaction Date :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below Function I have used in Set Anlaysis :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FirstSortedValue(Amount,-TransactionDate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But above when used in my code its not working.fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the attached set of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly let me know how we achieve one row with the current amount value as 250.17&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2018 18:32:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Latest-value-require-in-the-expression/m-p/56943#M9483</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-20T18:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Latest value require in the expression</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-value-require-in-the-expression/m-p/56944#M9484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, in your sample transaction date as the same value for all Sales Quote num.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2018 18:49:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Latest-value-require-in-the-expression/m-p/56944#M9484</guid>
      <dc:creator>sergio0592</dc:creator>
      <dc:date>2018-06-20T18:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Latest value require in the expression</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-value-require-in-the-expression/m-p/56945#M9485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where exactly are you using this expression? Text box object or chart? What is the dimension if this is used in a chart?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2018 01:59:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Latest-value-require-in-the-expression/m-p/56945#M9485</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-21T01:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Latest value require in the expression</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-value-require-in-the-expression/m-p/56946#M9486</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;I am using this expression in Straight Table and dimension I am using as Amount and Transaction Date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2018 09:05:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Latest-value-require-in-the-expression/m-p/56946#M9486</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-21T09:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Latest value require in the expression</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-value-require-in-the-expression/m-p/56947#M9487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manisha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this.. use timestamp() when loading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Sales Quote Num",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Timestamp(TransactionDate) as TransactionDate&lt;/P&gt;&lt;P&gt;FROM [lib://Desk/Copy of Set of Data.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/205854_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Prashanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2018 09:54:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Latest-value-require-in-the-expression/m-p/56947#M9487</guid>
      <dc:creator>d_prashanthredd</dc:creator>
      <dc:date>2018-06-21T09:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Latest value require in the expression</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-value-require-in-the-expression/m-p/56948#M9488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do you use Amount and Transaction Date as dimension, if you want the expression to be aggregated to show max(Transaction Date) and Amount associated with Max(transaction date)... Can you remove the dimension to see if this works?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2018 11:11:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Latest-value-require-in-the-expression/m-p/56948#M9488</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-21T11:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Latest value require in the expression</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-value-require-in-the-expression/m-p/56949#M9489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prashanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this setanalysis :&amp;nbsp; sum(aggr(FirstSortedValue(Amount,-TransactionDate),[SalesQuote Num])) I could not able to get one row as you have got it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the attached output sheet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2018 13:23:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Latest-value-require-in-the-expression/m-p/56949#M9489</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-21T13:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: Latest value require in the expression</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-value-require-in-the-expression/m-p/56950#M9490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you can rank sales in script and then take the first value using set analysis:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;subjectRank={"1"}&amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales:&lt;/P&gt;&lt;P&gt;LOAD [Sales Quote Num] as [Sales Quote Num], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount as Amount, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time(Frac(TransactionDate)) as time,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Floor(TransactionDate), 'YYYY-MM-DD') as date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; timestamp#(TransactionDate, 'DD/MM/YYYY&amp;nbsp; hh:mm:ss') as timestamp&lt;/P&gt;&lt;P&gt;FROM [Set of Data.xlsx] (ooxml, embedded labels, table is Sheet1)&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//create the rownumber&lt;/P&gt;&lt;P&gt;RankSales:&lt;/P&gt;&lt;P&gt;load *,&lt;/P&gt;&lt;P&gt;rowno() as Subrank resident Sales&lt;/P&gt;&lt;P&gt;Order by [Sales Quote Num], date desc, time desc&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//create rank based on quote num, date and time&lt;/P&gt;&lt;P&gt;left join (RankSales)&lt;/P&gt;&lt;P&gt;load Subrank, &lt;/P&gt;&lt;P&gt;if(Previous([Sales Quote Num])=[Sales Quote Num], peek("subjectRank")+1, 1) as subjectRank&lt;/P&gt;&lt;P&gt;Resident RankSales&lt;/P&gt;&lt;P&gt;order by [Sales Quote Num], timestamp desc&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table Sales;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2018 16:35:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Latest-value-require-in-the-expression/m-p/56950#M9490</guid>
      <dc:creator>captain89</dc:creator>
      <dc:date>2018-06-21T16:35:53Z</dc:date>
    </item>
  </channel>
</rss>

