<?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 First/Last value in field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/First-Last-value-in-field/m-p/149102#M27313</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;My question might be really trivial, but still I need to ask &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Let's consider following table:&lt;/P&gt;&lt;P&gt;ACTIVITY ID, ACTIVITY NAME, MODEL&lt;/P&gt;&lt;P&gt;ACT_1, Activity One, Model_1&lt;/P&gt;&lt;P&gt;ACT_2, Activity Two, Model_2&lt;/P&gt;&lt;P&gt;ACT_3, Activity Three, Model_3&lt;/P&gt;&lt;P&gt;What function I should use to find the last value of MODEL sorting by the ACTIVITY ID.&lt;/P&gt;&lt;P&gt;I'm looking for the chart function.&lt;/P&gt;&lt;P&gt;Thank you very much for your help.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;JTPro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jul 2009 04:15:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-07-13T04:15:01Z</dc:date>
    <item>
      <title>First/Last value in field</title>
      <link>https://community.qlik.com/t5/QlikView/First-Last-value-in-field/m-p/149102#M27313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;My question might be really trivial, but still I need to ask &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Let's consider following table:&lt;/P&gt;&lt;P&gt;ACTIVITY ID, ACTIVITY NAME, MODEL&lt;/P&gt;&lt;P&gt;ACT_1, Activity One, Model_1&lt;/P&gt;&lt;P&gt;ACT_2, Activity Two, Model_2&lt;/P&gt;&lt;P&gt;ACT_3, Activity Three, Model_3&lt;/P&gt;&lt;P&gt;What function I should use to find the last value of MODEL sorting by the ACTIVITY ID.&lt;/P&gt;&lt;P&gt;I'm looking for the chart function.&lt;/P&gt;&lt;P&gt;Thank you very much for your help.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;JTPro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2009 04:15:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Last-value-in-field/m-p/149102#M27313</guid>
      <dc:creator />
      <dc:date>2009-07-13T04:15:01Z</dc:date>
    </item>
    <item>
      <title>First/Last value in field</title>
      <link>https://community.qlik.com/t5/QlikView/First-Last-value-in-field/m-p/149103#M27314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Look in the help file for the function firstsortedvalue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2009 05:01:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Last-value-in-field/m-p/149103#M27314</guid>
      <dc:creator>stephencredmond</dc:creator>
      <dc:date>2009-07-13T05:01:16Z</dc:date>
    </item>
    <item>
      <title>First/Last value in field</title>
      <link>https://community.qlik.com/t5/QlikView/First-Last-value-in-field/m-p/149104#M27315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you very much for response.&lt;/P&gt;&lt;P&gt;I have already looked in the description of the firstsortedvalue function, but there is restriction that sort-weight must return numeric value. In my case it is a string sort-weight.&lt;/P&gt;&lt;P&gt;Can you write the expression that would do what I want?&lt;/P&gt;&lt;P&gt;Looking forward to hear from you.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;JTPro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2009 14:34:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Last-value-in-field/m-p/149104#M27315</guid>
      <dc:creator />
      <dc:date>2009-07-13T14:34:53Z</dc:date>
    </item>
    <item>
      <title>First/Last value in field</title>
      <link>https://community.qlik.com/t5/QlikView/First-Last-value-in-field/m-p/149105#M27316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would probably load in a sort value via the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;Data1:&lt;BR /&gt;Load * INLINE [&lt;BR /&gt;ACTIVITY ID, ACTIVITY NAME, MODEL&lt;BR /&gt;ACT_4, Activity Four, Model_4&lt;BR /&gt;ACT_3, Act 3.2, Model_3&lt;BR /&gt;ACT_1, Activity One, Model_1&lt;BR /&gt;ACT_2, Activity Two, Model_2&lt;BR /&gt;ACT_3, Activity Three, Model_3&lt;BR /&gt;];&lt;BR /&gt;Left Join (Data1)&lt;BR /&gt;Load&lt;BR /&gt; RowNo() As Sort,&lt;BR /&gt; [ACTIVITY ID],&lt;BR /&gt; Count([ACTIVITY ID]) AS NeededAggregation&lt;BR /&gt;Resident Data1&lt;BR /&gt;Group by [ACTIVITY ID]&lt;BR /&gt;Order By [ACTIVITY ID];&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2009 16:53:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Last-value-in-field/m-p/149105#M27316</guid>
      <dc:creator>stephencredmond</dc:creator>
      <dc:date>2009-07-13T16:53:17Z</dc:date>
    </item>
    <item>
      <title>First/Last value in field</title>
      <link>https://community.qlik.com/t5/QlikView/First-Last-value-in-field/m-p/149106#M27317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;It works just perfect.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;JTPro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2009 17:18:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Last-value-in-field/m-p/149106#M27317</guid>
      <dc:creator />
      <dc:date>2009-07-13T17:18:50Z</dc:date>
    </item>
  </channel>
</rss>

