<?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: Use only latest date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-only-latest-date/m-p/621464#M1115242</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swehl,&lt;/P&gt;&lt;P&gt;can you please post condition for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Mahesh T&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Feb 2014 21:14:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-02-07T21:14:34Z</dc:date>
    <item>
      <title>Use only latest date</title>
      <link>https://community.qlik.com/t5/QlikView/Use-only-latest-date/m-p/621459#M1115235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my first post, I´m new at QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´ve two tables. This could be a list of pupils, with their points at the last tests in class (see Table1). With every new Test, the teacher adds a new row with the current date and the achieved score. The teacher wants to have a straight table in QlikView, where he could see &lt;SPAN style="text-decoration: underline;"&gt;only the last scores&lt;/SPAN&gt; of every pupil.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore I used:&lt;/P&gt;&lt;P&gt;Dimension: Name&lt;/P&gt;&lt;P&gt;Expression: if(Testdate = max(Testdate), History)&lt;/P&gt;&lt;P&gt;Than I get a field with the score of the last History-test of every pupil.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But there was a problem. At "Scott" it shows me only "-" because he missed the last test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For that, I would like to have an expression, that would use Max(Testdate) and if there is no score at this date, it would use the latest available score. At Scott it would be the 20.12.13 (see Table2). So in future, when the teacher will have more tests with this class, he will always have the latest score of every pupil, even when he misses a test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already looked at the community and at google. I also read the book "QlikView 11 for Developers", but I didn´t find a solution yet. Maybe I found it, but didn´t recognise it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 17:44:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-only-latest-date/m-p/621459#M1115235</guid>
      <dc:creator />
      <dc:date>2014-02-07T17:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Use only latest date</title>
      <link>https://community.qlik.com/t5/QlikView/Use-only-latest-date/m-p/621460#M1115236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look into FirstSortedValue() function, create a chart with dimension Name, then &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=max(Testdate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as 1. expresseion to get the latest Testdate per Name, and three other expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=FirstSortedValue( History, -Testdate)&lt;/P&gt;&lt;P&gt;=FirstSortedValue( Math, -Testdate)&lt;/P&gt;&lt;P&gt;=FirstSortedValue( Physics, -Testdate)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 17:53:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-only-latest-date/m-p/621460#M1115236</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-02-07T17:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Use only latest date</title>
      <link>https://community.qlik.com/t5/QlikView/Use-only-latest-date/m-p/621461#M1115237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that was pretty fast. Thank you very much. It works fine, if there is no row with a date and "-". But I the case of "Scott", he hast a date and three "-". &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Table3.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/52821_Table3.png" /&gt;&lt;/P&gt;&lt;P&gt;Ok, in this case I could drop the whole row. But for example, it could be, that Scott made 2 Tests (History and Physics) and missed one (Math). Than it would look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Table4.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/52822_Table4.png" /&gt;&lt;/P&gt;&lt;P&gt;In this case, I would like to have at Scott the current tests in History and Physics, and for Math the score of his last Math test, at the 20.12.13 (= 73). Please don´t think about the reason, the teacher want´s to have always a value to have not only a "-". &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 18:40:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-only-latest-date/m-p/621461#M1115237</guid>
      <dc:creator />
      <dc:date>2014-02-07T18:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Use only latest date</title>
      <link>https://community.qlik.com/t5/QlikView/Use-only-latest-date/m-p/621462#M1115238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I missed the line with no scores for Scott.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be easier if you could upload some sample lines of data (easier to use the data compared to a screenshot).&lt;/P&gt;&lt;P&gt;In general, you should be able to include a condition or a so called set expression to filter only valid scores.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 18:47:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-only-latest-date/m-p/621462#M1115238</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-02-07T18:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Use only latest date</title>
      <link>https://community.qlik.com/t5/QlikView/Use-only-latest-date/m-p/621463#M1115241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Best way to handle this issue is... to write a load script to replace null with score of previous test&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 19:55:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-only-latest-date/m-p/621463#M1115241</guid>
      <dc:creator />
      <dc:date>2014-02-07T19:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Use only latest date</title>
      <link>https://community.qlik.com/t5/QlikView/Use-only-latest-date/m-p/621464#M1115242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swehl,&lt;/P&gt;&lt;P&gt;can you please post condition for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Mahesh T&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 21:14:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-only-latest-date/m-p/621464#M1115242</guid>
      <dc:creator />
      <dc:date>2014-02-07T21:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Use only latest date</title>
      <link>https://community.qlik.com/t5/QlikView/Use-only-latest-date/m-p/621465#M1115243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you swuehl for your quick answer and your help. So I will go deeper into set expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Surya: Thank you for your tip. I will try this one, too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I get a solution of that, I will post it. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Feb 2014 11:30:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-only-latest-date/m-p/621465#M1115243</guid>
      <dc:creator />
      <dc:date>2014-02-08T11:30:42Z</dc:date>
    </item>
  </channel>
</rss>

