<?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: Date based on max row id in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Date-based-on-max-row-id/m-p/1590863#M43377</link>
    <description>&lt;P&gt;&amp;nbsp;Variable overview its says 2 for max_row_id wich is correct and it shows correct for date as well.&lt;/P&gt;&lt;P&gt;But for message it is not. Do KPI shows Text data .&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jun 2019 09:43:30 GMT</pubDate>
    <dc:creator>New-Qlik</dc:creator>
    <dc:date>2019-06-12T09:43:30Z</dc:date>
    <item>
      <title>Date based on max row id</title>
      <link>https://community.qlik.com/t5/App-Development/Date-based-on-max-row-id/m-p/1590372#M43325</link>
      <description>&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;I have to pick date where row_id is maximum .&lt;/P&gt;&lt;P&gt;Date &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; Row_id &amp;nbsp; Message&lt;/P&gt;&lt;P&gt;1/11/2019 12:00:00 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Data Error&lt;/P&gt;&lt;P&gt;1/11/2019 12:10:00 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Data Refreshed&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to display second row . I tried max as script function but didn't work&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Avneet&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 16:34:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-based-on-max-row-id/m-p/1590372#M43325</guid>
      <dc:creator>New-Qlik</dc:creator>
      <dc:date>2021-12-22T16:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Date based on max row id</title>
      <link>https://community.qlik.com/t5/App-Development/Date-based-on-max-row-id/m-p/1590377#M43326</link>
      <description>&lt;P&gt;Hi Avneet,&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table:
Load
     Max(Row_id) as RowFilter,
;
Load * Inline [
Date,  Row_id,   Message
1/11/2019 12:00:00,   1 ,  Data Error
1/11/2019 12:10:00 ,  2  ,     Data Refreshed 
]
;

Table:
Load
     Date,
     Row_id,
     Message
Where Row_id = RowFilter
From [YourSource](qvd);&lt;/LI-CODE&gt;&lt;P&gt;Jordy&lt;/P&gt;&lt;P&gt;Climber&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 09:59:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-based-on-max-row-id/m-p/1590377#M43326</guid>
      <dc:creator>JordyWegman</dc:creator>
      <dc:date>2019-06-11T09:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Date based on max row id</title>
      <link>https://community.qlik.com/t5/App-Development/Date-based-on-max-row-id/m-p/1590453#M43340</link>
      <description>&lt;P&gt;Thanks Jordy for replying , but solution didn't work and also mine is a database table not inline.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 12:41:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-based-on-max-row-id/m-p/1590453#M43340</guid>
      <dc:creator>New-Qlik</dc:creator>
      <dc:date>2019-06-11T12:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Date based on max row id</title>
      <link>https://community.qlik.com/t5/App-Development/Date-based-on-max-row-id/m-p/1590459#M43342</link>
      <description>&lt;P&gt;Hi Avneet,&lt;/P&gt;&lt;P&gt;The Inline was just an example, you have to get your own database import for this.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;You can also work with a variable:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table:
Load
     Date,
     Row_id,
     Message
From [YourSource](qvd);

tmpTable;
Load
    Max(Row_id) as MaxRowId
Resident Table;

let vMaxRowId = peek('MaxRowId',0,'tmpTable')

TableWithMaxRowId:
Load
     Date,
     Row_id,
     Message
Where Row_id = $(vMaxRowId)
Resident Table;&lt;/LI-CODE&gt;&lt;P&gt;Jordy&lt;/P&gt;&lt;P&gt;Climber&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 12:52:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-based-on-max-row-id/m-p/1590459#M43342</guid>
      <dc:creator>JordyWegman</dc:creator>
      <dc:date>2019-06-11T12:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Date based on max row id</title>
      <link>https://community.qlik.com/t5/App-Development/Date-based-on-max-row-id/m-p/1590522#M43351</link>
      <description>&lt;P&gt;Thanks . I am trying to show message for max of&amp;nbsp; ROW_ID&amp;nbsp; in an KPI object. Set analysis is not working as message is a text.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 14:20:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-based-on-max-row-id/m-p/1590522#M43351</guid>
      <dc:creator>New-Qlik</dc:creator>
      <dc:date>2019-06-11T14:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Date based on max row id</title>
      <link>https://community.qlik.com/t5/App-Development/Date-based-on-max-row-id/m-p/1590529#M43352</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then you can just use the variable $(vMaxRowId) in the KPI object.&lt;/P&gt;&lt;P&gt;Jordy&lt;/P&gt;&lt;P&gt;Climber&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 14:29:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-based-on-max-row-id/m-p/1590529#M43352</guid>
      <dc:creator>JordyWegman</dc:creator>
      <dc:date>2019-06-11T14:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Date based on max row id</title>
      <link>https://community.qlik.com/t5/App-Development/Date-based-on-max-row-id/m-p/1590727#M43369</link>
      <description>&lt;P&gt;Please check the attached, is this what you are looking for?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 05:37:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-based-on-max-row-id/m-p/1590727#M43369</guid>
      <dc:creator>anushree1</dc:creator>
      <dc:date>2019-06-12T05:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Date based on max row id</title>
      <link>https://community.qlik.com/t5/App-Development/Date-based-on-max-row-id/m-p/1590851#M43374</link>
      <description>&lt;P&gt;Thanks Anushree. It workds wonders in table but when I am trying to create two KPT objects&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Date&amp;nbsp;=if(Row_id=max(all Row_id),Date)&lt;/P&gt;&lt;P&gt;2. Message&amp;nbsp;=if(Row_id=max(all Row_id),message)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its not working&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 09:10:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-based-on-max-row-id/m-p/1590851#M43374</guid>
      <dc:creator>New-Qlik</dc:creator>
      <dc:date>2019-06-12T09:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Date based on max row id</title>
      <link>https://community.qlik.com/t5/App-Development/Date-based-on-max-row-id/m-p/1590853#M43375</link>
      <description>&lt;P&gt;Thanks Jordy. IT works for displaying date in KPI&lt;/P&gt;&lt;P&gt;but when I try to display message with Max_row_id = $(vMax_row_id) its give me '-'.&lt;/P&gt;&lt;P&gt;I am not sure where I am wrong&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 09:13:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-based-on-max-row-id/m-p/1590853#M43375</guid>
      <dc:creator>New-Qlik</dc:creator>
      <dc:date>2019-06-12T09:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: Date based on max row id</title>
      <link>https://community.qlik.com/t5/App-Development/Date-based-on-max-row-id/m-p/1590858#M43376</link>
      <description>&lt;P&gt;Hi Avneet,&lt;/P&gt;&lt;P&gt;Check you variable overview (left corner) and see if the variable&amp;nbsp;&lt;SPAN&gt;$(vMax_row_id) is returning a value here. If there is no value in here, then you haven't defined your variable well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Jordy&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Climber&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 09:29:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-based-on-max-row-id/m-p/1590858#M43376</guid>
      <dc:creator>JordyWegman</dc:creator>
      <dc:date>2019-06-12T09:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Date based on max row id</title>
      <link>https://community.qlik.com/t5/App-Development/Date-based-on-max-row-id/m-p/1590863#M43377</link>
      <description>&lt;P&gt;&amp;nbsp;Variable overview its says 2 for max_row_id wich is correct and it shows correct for date as well.&lt;/P&gt;&lt;P&gt;But for message it is not. Do KPI shows Text data .&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 09:43:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-based-on-max-row-id/m-p/1590863#M43377</guid>
      <dc:creator>New-Qlik</dc:creator>
      <dc:date>2019-06-12T09:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Date based on max row id</title>
      <link>https://community.qlik.com/t5/App-Development/Date-based-on-max-row-id/m-p/1590865#M43378</link>
      <description>&lt;P&gt;That is good, try to put single quotes around the variable ='$(&lt;SPAN&gt;max_row_id&amp;nbsp;)'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Jordy&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Climber&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 09:47:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-based-on-max-row-id/m-p/1590865#M43378</guid>
      <dc:creator>JordyWegman</dc:creator>
      <dc:date>2019-06-12T09:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: Date based on max row id</title>
      <link>https://community.qlik.com/t5/App-Development/Date-based-on-max-row-id/m-p/1590889#M43381</link>
      <description>&lt;P&gt;Please try the below expression :&lt;/P&gt;&lt;P&gt;=only({&amp;lt;Row_id={$(=max(Row_id))}&amp;gt;}Date)&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 10:38:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-based-on-max-row-id/m-p/1590889#M43381</guid>
      <dc:creator>anushree1</dc:creator>
      <dc:date>2019-06-12T10:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: Date based on max row id</title>
      <link>https://community.qlik.com/t5/App-Development/Date-based-on-max-row-id/m-p/1590907#M43386</link>
      <description>&lt;P&gt;Thanks it worked.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 11:05:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-based-on-max-row-id/m-p/1590907#M43386</guid>
      <dc:creator>New-Qlik</dc:creator>
      <dc:date>2019-06-12T11:05:23Z</dc:date>
    </item>
  </channel>
</rss>

