<?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: How to get the last value from a product in time in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-get-the-last-value-from-a-product-in-time/m-p/1054775#M465623</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you feel a bit more adventurous this post by a good friend is also an option.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlikview.com/thread/58538" title="https://community.qlikview.com/thread/58538"&gt;Rolling 3, 6 and 12 months calculation | Qlik Community&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Mar 2016 13:37:17 GMT</pubDate>
    <dc:creator>O11235</dc:creator>
    <dc:date>2016-03-11T13:37:17Z</dc:date>
    <item>
      <title>How to get the last value from a product in time</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-the-last-value-from-a-product-in-time/m-p/1054772#M465620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am dealing with a problem for some time now and I can't find a solution that might be easy for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem seems simple but I am still a beginner in QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The situation is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a dataset with 4 months of data. In this period of time the quantity of products changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want is to get is the last quantity.&lt;/P&gt;&lt;P&gt;Imagine this, if I am looking for this last 4 months of data and the product 12345678&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Month&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Product&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Qty&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12345678&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12345678&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;-5&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12345678&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12345678&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to get the Qty = 5 for example in a TextBox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the firstSortedValue but it is not returning the value I expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see attached file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 11:22:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-the-last-value-from-a-product-in-time/m-p/1054772#M465620</guid>
      <dc:creator />
      <dc:date>2016-03-11T11:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the last value from a product in time</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-the-last-value-from-a-product-in-time/m-p/1054773#M465621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=Sum({&amp;lt;Month = {$(=max(Month))}&amp;gt;} Qty)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this in the text box&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Kiran kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 13:15:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-the-last-value-from-a-product-in-time/m-p/1054773#M465621</guid>
      <dc:creator>kkkumar82</dc:creator>
      <dc:date>2016-03-11T13:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the last value from a product in time</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-the-last-value-from-a-product-in-time/m-p/1054774#M465622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with kkkumar82.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;"sum({&amp;lt;Month={"$(=max(Month))"}&amp;gt;}Qty)" works. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Do your self a favor have a look at &lt;A href="https://community.qlik.com/docs/DOC-4951"&gt;Set Analysis: syntaxes, examples&lt;/A&gt; and get into "Set Analysis" . &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 13:30:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-the-last-value-from-a-product-in-time/m-p/1054774#M465622</guid>
      <dc:creator>O11235</dc:creator>
      <dc:date>2016-03-11T13:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the last value from a product in time</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-the-last-value-from-a-product-in-time/m-p/1054775#M465623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you feel a bit more adventurous this post by a good friend is also an option.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlikview.com/thread/58538" title="https://community.qlikview.com/thread/58538"&gt;Rolling 3, 6 and 12 months calculation | Qlik Community&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 13:37:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-the-last-value-from-a-product-in-time/m-p/1054775#M465623</guid>
      <dc:creator>O11235</dc:creator>
      <dc:date>2016-03-11T13:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the last value from a product in time</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-the-last-value-from-a-product-in-time/m-p/1054776#M465624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this - &lt;/P&gt;&lt;P&gt;=FirstSortedValue(Qty,-Month)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 13:43:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-the-last-value-from-a-product-in-time/m-p/1054776#M465624</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2016-03-11T13:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the last value from a product in time</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-the-last-value-from-a-product-in-time/m-p/1054777#M465625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The last reply went to moderator, so trying again - &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Check this -&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=FirstSortedValue(Qty,-Month)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 13:44:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-the-last-value-from-a-product-in-time/m-p/1054777#M465625</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2016-03-11T13:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the last value from a product in time</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-the-last-value-from-a-product-in-time/m-p/1054778#M465626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Sum({&amp;lt;Month = {$(=max(Month))}&amp;gt;} Qty)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Try this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Kiran Kumar&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 13:49:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-the-last-value-from-a-product-in-time/m-p/1054778#M465626</guid>
      <dc:creator>kkkumar82</dc:creator>
      <dc:date>2016-03-11T13:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the last value from a product in time</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-the-last-value-from-a-product-in-time/m-p/1054779#M465627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think your expression won't work in a text box when there are multiple records, correct me If I am wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kiran Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 14:05:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-the-last-value-from-a-product-in-time/m-p/1054779#M465627</guid>
      <dc:creator>kkkumar82</dc:creator>
      <dc:date>2016-03-11T14:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the last value from a product in time</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-the-last-value-from-a-product-in-time/m-p/1054780#M465628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your reply. That works in fact, but I am now struggling with the date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because in my application the months are not a numeric like that in this example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have changed a little bit the example.qvw file. If you could see this issue in this way I would appreciate very much &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 14:56:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-the-last-value-from-a-product-in-time/m-p/1054780#M465628</guid>
      <dc:creator />
      <dc:date>2016-03-11T14:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the last value from a product in time</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-the-last-value-from-a-product-in-time/m-p/1054781#M465629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works if you want just Quantity value from maximum month. If you need product wise Qty from latest month then use same expression in straight table with Product as dimension. See this sample created from your data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 16:10:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-the-last-value-from-a-product-in-time/m-p/1054781#M465629</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2016-03-11T16:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the last value from a product in time</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-the-last-value-from-a-product-in-time/m-p/1054782#M465630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes that works using the date as a Int like in this example. But in my application, Date is not like that.&lt;/P&gt;&lt;P&gt;The following error shows:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Error: Error in set modifier ad hoc element list: ',' or ')' expected&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried this but no luck:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;num(Date)={$(=max(num(Date)))}&amp;gt;}#Qty)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following error shows:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Error: Error in set modifier expression&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 17:24:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-the-last-value-from-a-product-in-time/m-p/1054782#M465630</guid>
      <dc:creator />
      <dc:date>2016-03-11T17:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the last value from a product in time</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-the-last-value-from-a-product-in-time/m-p/1054783#M465631</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;Are your dates in string format or in date format, if there are in date format &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Sum({&amp;lt;Date={'$(=max(Date))'}&amp;gt;}#Qty) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Kiran Kumar&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Mar 2016 01:55:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-the-last-value-from-a-product-in-time/m-p/1054783#M465631</guid>
      <dc:creator>kkkumar82</dc:creator>
      <dc:date>2016-03-12T01:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the last value from a product in time</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-the-last-value-from-a-product-in-time/m-p/1054784#M465632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To get the Top Qty, you can also try like this..&lt;/P&gt;&lt;P&gt;Only({&amp;lt;Month={"=Rank(Month)=1"}&amp;gt;}Qty)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Mar 2016 02:55:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-the-last-value-from-a-product-in-time/m-p/1054784#M465632</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2016-03-12T02:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the last value from a product in time</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-the-last-value-from-a-product-in-time/m-p/1054785#M465633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot, that solved my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2016 11:22:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-the-last-value-from-a-product-in-time/m-p/1054785#M465633</guid>
      <dc:creator />
      <dc:date>2016-03-15T11:22:33Z</dc:date>
    </item>
  </channel>
</rss>

