<?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: Display Complete History of Next Value in List in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Display-Complete-History-of-Next-Value-in-List/m-p/1203423#M387091</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can't use the actual qwv so I'll see if I can replicate with some dummy data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Oct 2016 15:20:41 GMT</pubDate>
    <dc:creator>ciaran_mcgowan</dc:creator>
    <dc:date>2016-10-05T15:20:41Z</dc:date>
    <item>
      <title>Display Complete History of Next Value in List</title>
      <link>https://community.qlik.com/t5/QlikView/Display-Complete-History-of-Next-Value-in-List/m-p/1203421#M387089</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;I have an interesting problem where I need to show a list of how an employee has performed in a certain type of evaluation. My client regularly sets tasks/tests for employees to complete during the course of a year. These are then displayed in a list along with the date have have or are scheduled to take them:&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;Date&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Employee&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Task&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01/02/2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;John&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Bi-Monthly Ethics Exam&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;25/02/2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;John&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Self Assessment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01/03/2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;John&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Bi-Monthly Ethics Exam&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;15/05/2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Paul&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Entrant Exam&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01/06/2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Paul&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Bi&lt;SPAN style="font-size: 13.3333px;"&gt;-Monthly Ethics Exam&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have another table where a list of employees is displayed but instead of all their tasks, it only shows their next on. I did this using the formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;FirstSortedValue&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #993300;"&gt;Flag.UpcommingExam&lt;/SPAN&gt;={1}&amp;gt;} &lt;SPAN style="color: #993300;"&gt;Exam&lt;/SPAN&gt;, &lt;SPAN style="color: #993300;"&gt;Date&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to know is it possible to create a table that ONLY shows a history of their next exam? I've tried a few variations of set analysis but not been successful so far. I would like to be able to select an employee and the table show their next exam along with their history ONLY for that exam, like below:&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;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Task&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;History&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01/01/2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;B&lt;SPAN style="font-size: 13.3333px;"&gt;i-Monthly Ethics Exam&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Pass&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;01/02/2016&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;B&lt;SPAN style="font-size: 13.3333px;"&gt;i-Monthly Ethics Exam&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Fail&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;01/03/2016&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Bi-Monthly Ethics Exam&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Pass&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;01/04/2016&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Bi-Monthly Ethics Exam&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Pass&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01/05/2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Bi-Monthly Ethics Exam&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Not Done&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 15:02:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-Complete-History-of-Next-Value-in-List/m-p/1203421#M387089</guid>
      <dc:creator>ciaran_mcgowan</dc:creator>
      <dc:date>2016-10-05T15:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Display Complete History of Next Value in List</title>
      <link>https://community.qlik.com/t5/QlikView/Display-Complete-History-of-Next-Value-in-List/m-p/1203422#M387090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be it would be helpful for us to take a look at the qvw you are trying this out on. I think by looking at it, we might be able to offer better solutions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 15:05:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-Complete-History-of-Next-Value-in-List/m-p/1203422#M387090</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-05T15:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Display Complete History of Next Value in List</title>
      <link>https://community.qlik.com/t5/QlikView/Display-Complete-History-of-Next-Value-in-List/m-p/1203423#M387091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can't use the actual qwv so I'll see if I can replicate with some dummy data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 15:20:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-Complete-History-of-Next-Value-in-List/m-p/1203423#M387091</guid>
      <dc:creator>ciaran_mcgowan</dc:creator>
      <dc:date>2016-10-05T15:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Display Complete History of Next Value in List</title>
      <link>https://community.qlik.com/t5/QlikView/Display-Complete-History-of-Next-Value-in-List/m-p/1203424#M387092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this link can help&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1290"&gt;Preparing examples for Upload - Reduction and Data Scrambling&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 15:23:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-Complete-History-of-Next-Value-in-List/m-p/1203424#M387092</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-05T15:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Display Complete History of Next Value in List</title>
      <link>https://community.qlik.com/t5/QlikView/Display-Complete-History-of-Next-Value-in-List/m-p/1203425#M387093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've added a sample qvw. Same principle, just different results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 15:59:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-Complete-History-of-Next-Value-in-List/m-p/1203425#M387093</guid>
      <dc:creator>ciaran_mcgowan</dc:creator>
      <dc:date>2016-10-05T15:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Display Complete History of Next Value in List</title>
      <link>https://community.qlik.com/t5/QlikView/Display-Complete-History-of-Next-Value-in-List/m-p/1203426#M387094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/139738_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You had a misplacement of = sign in your expressions:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Only({&amp;lt;Exam = {"$(=FirstSortedValue({&amp;lt;Flag.FutureExam={1}&amp;gt;} Exam, Date))"}&amp;gt;} Exam)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Only({&amp;lt;Exam = {"$(=FirstSortedValue({&amp;lt;Flag.FutureExam={1}&amp;gt;} Exam, Date))"}&amp;gt;} Result)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you can try this as well:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimensions&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Employee&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Aggr(If(FirstSortedValue(TOTAL {&amp;lt;Flag.FutureExam={1}&amp;gt;} Exam, Date) = Exam, Exam), Employee, Date)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Result&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/139742_Capture.PNG" style="height: 88px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 17:17:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-Complete-History-of-Next-Value-in-List/m-p/1203426#M387094</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-05T17:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Display Complete History of Next Value in List</title>
      <link>https://community.qlik.com/t5/QlikView/Display-Complete-History-of-Next-Value-in-List/m-p/1203427#M387095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again Sunny!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't believe it was that simple! You're alternative solution also works great.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 23:00:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-Complete-History-of-Next-Value-in-List/m-p/1203427#M387095</guid>
      <dc:creator>ciaran_mcgowan</dc:creator>
      <dc:date>2016-10-05T23:00:18Z</dc:date>
    </item>
  </channel>
</rss>

