<?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: Load only last status! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-only-last-status/m-p/593715#M220035</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;Dimension1-&lt;/P&gt;&lt;P&gt;COD&lt;/P&gt;&lt;P&gt;Dimension2-&lt;/P&gt;&lt;P&gt;NAME&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;Aggr(Firstsortedvalue(Status,-Row),NAME)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Jan 2014 11:09:56 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-31T11:09:56Z</dc:date>
    <item>
      <title>Load only last status!</title>
      <link>https://community.qlik.com/t5/QlikView/Load-only-last-status/m-p/593707#M220027</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 need to load only the latest status of the same name and user code. &lt;/P&gt;&lt;P&gt;In short, the last line pertinent to an id. &lt;/P&gt;&lt;P&gt;This can be done both in the script and in an expression?&lt;/P&gt;&lt;P&gt;Thank You! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I have this:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Load1.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/52398_Load1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I want this:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Load2.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/52399_Load2.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 10:50:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-only-last-status/m-p/593707#M220027</guid>
      <dc:creator />
      <dc:date>2014-01-31T10:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Load only last status!</title>
      <link>https://community.qlik.com/t5/QlikView/Load-only-last-status/m-p/593708#M220028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dont you have any kind of Date to define wich is the last status? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 10:51:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-only-last-status/m-p/593708#M220028</guid>
      <dc:creator />
      <dc:date>2014-01-31T10:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Load only last status!</title>
      <link>https://community.qlik.com/t5/QlikView/Load-only-last-status/m-p/593709#M220029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh just saw the row_id.... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;guessing that's is incremental i would use a resident load on the script to flag the last status (so you keep the history of change status)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 10:54:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-only-last-status/m-p/593709#M220029</guid>
      <dc:creator />
      <dc:date>2014-01-31T10:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Load only last status!</title>
      <link>https://community.qlik.com/t5/QlikView/Load-only-last-status/m-p/593710#M220030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use max and group by&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Row&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Row&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COD&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NAME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;STATUS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Data.xlsx&lt;BR /&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ooxml&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;embedded&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Sheet1)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Group&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;By&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COD&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NAME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;STATUS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 10:58:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-only-last-status/m-p/593710#M220030</guid>
      <dc:creator />
      <dc:date>2014-01-31T10:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Load only last status!</title>
      <link>https://community.qlik.com/t5/QlikView/Load-only-last-status/m-p/593711#M220031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in script, assuming the last by rn (= your row field) and using peek to filter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tmp:&lt;/P&gt;&lt;P&gt;load *, rowno() as rn;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;cod, name, status&lt;/P&gt;&lt;P&gt;1, j, a&lt;/P&gt;&lt;P&gt;5, m, a&lt;/P&gt;&lt;P&gt;1, j, i&lt;/P&gt;&lt;P&gt;1, j, a&lt;/P&gt;&lt;P&gt;3, c, a&lt;/P&gt;&lt;P&gt;3, c, i&lt;/P&gt;&lt;P&gt;5, m, i&lt;/P&gt;&lt;P&gt;1, j, i&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp; rn, cod, name, status&lt;/P&gt;&lt;P&gt;Resident Tmp&lt;/P&gt;&lt;P&gt;where peek(cod) &amp;lt;&amp;gt; cod or peek(name) &amp;lt;&amp;gt; name&lt;/P&gt;&lt;P&gt;order by cod, rn desc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table Tmp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 11:02:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-only-last-status/m-p/593711#M220031</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-01-31T11:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Load only last status!</title>
      <link>https://community.qlik.com/t5/QlikView/Load-only-last-status/m-p/593712#M220032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make a Straight Table&lt;/P&gt;&lt;P&gt;Dimension = Name and Cod&lt;/P&gt;&lt;P&gt;Expression = FirstSortedValue(STATUS,-Row)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make a Straight Table&lt;/P&gt;&lt;P&gt;Dimension = Name&lt;/P&gt;&lt;P&gt;Expression = Aggr(FirstSortedValue(STATUS,-Row),COD)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make a Straight Table&lt;/P&gt;&lt;P&gt;Dimension = Code&lt;/P&gt;&lt;P&gt;Expression = Aggr(FirstSortedValue(STATUS,-Row),Name)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this would help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 11:04:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-only-last-status/m-p/593712#M220032</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-01-31T11:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Load only last status!</title>
      <link>https://community.qlik.com/t5/QlikView/Load-only-last-status/m-p/593713#M220033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and in chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dimension&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COD&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;&amp;nbsp; NAME&lt;/P&gt;&lt;P&gt;expression&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstSortedValue(STATUS, -ROW)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 11:06:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-only-last-status/m-p/593713#M220033</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-01-31T11:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Load only last status!</title>
      <link>https://community.qlik.com/t5/QlikView/Load-only-last-status/m-p/593714#M220034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;if you do this in chart --&lt;/P&gt;&lt;P&gt;then try this&lt;/P&gt;&lt;P&gt;Dimension1-&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Aggr(max(Row),Name)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;Dimension2-&lt;/P&gt;&lt;P&gt;COD&lt;/P&gt;&lt;P&gt;Dimension3-&lt;/P&gt;&lt;P&gt;Name&lt;/P&gt;&lt;P&gt;Expression-&lt;/P&gt;&lt;P&gt;Status&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 11:07:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-only-last-status/m-p/593714#M220034</guid>
      <dc:creator />
      <dc:date>2014-01-31T11:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Load only last status!</title>
      <link>https://community.qlik.com/t5/QlikView/Load-only-last-status/m-p/593715#M220035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;Dimension1-&lt;/P&gt;&lt;P&gt;COD&lt;/P&gt;&lt;P&gt;Dimension2-&lt;/P&gt;&lt;P&gt;NAME&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;Aggr(Firstsortedvalue(Status,-Row),NAME)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 11:09:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-only-last-status/m-p/593715#M220035</guid>
      <dc:creator />
      <dc:date>2014-01-31T11:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Load only last status!</title>
      <link>https://community.qlik.com/t5/QlikView/Load-only-last-status/m-p/593716#M220036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect! Works great! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Thank You Massimo and all of You!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 11:21:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-only-last-status/m-p/593716#M220036</guid>
      <dc:creator />
      <dc:date>2014-01-31T11:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Load only last status!</title>
      <link>https://community.qlik.com/t5/QlikView/Load-only-last-status/m-p/593717#M220037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice. Works like a charm.&lt;/P&gt;&lt;P&gt;Thanks again! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/laugh.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 11:22:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-only-last-status/m-p/593717#M220037</guid>
      <dc:creator />
      <dc:date>2014-01-31T11:22:24Z</dc:date>
    </item>
  </channel>
</rss>

