<?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: Issue with firstsortedvalue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Issue-with-firstsortedvalue/m-p/725363#M670921</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zhihong,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are 100's of users, i cannot filter based on one user.&lt;BR /&gt;I tried in the expression with distinct keyword, but its not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Sep 2014 09:22:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-09-30T09:22:33Z</dc:date>
    <item>
      <title>Issue with firstsortedvalue</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-firstsortedvalue/m-p/725359#M670917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm struck with some issue related to firstsortedvalue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote a statement in my script like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;firstsortedvalue(ID,-Time) as UserID----- This statement will return the id of the user based on the latest time.&lt;/P&gt;&lt;P&gt;firstsortedvalue(ID,Time) as UserID--- This statement will return the id of the user based on the earliest&amp;nbsp; time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what I want is all the users who has done some particular task based on my where clause.&lt;/P&gt;&lt;P&gt;so I also tried just&lt;/P&gt;&lt;P&gt;ID as UserID--- But it is giving me all the data, wrt other users also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sindhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 09:00:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-firstsortedvalue/m-p/725359#M670917</guid>
      <dc:creator />
      <dc:date>2014-09-30T09:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with firstsortedvalue</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-firstsortedvalue/m-p/725360#M670918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is your where clause?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 09:16:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-firstsortedvalue/m-p/725360#M670918</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-09-30T09:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with firstsortedvalue</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-firstsortedvalue/m-p/725361#M670919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you use the WHERE clause in the&amp;nbsp; LOAD and SELECT process?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;...,&lt;/P&gt;&lt;P&gt;ID as UserID;&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;...,&lt;/P&gt;&lt;P&gt;ID&lt;/P&gt;&lt;P&gt;FROM ..&lt;/P&gt;&lt;P&gt;WHERE clause;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;If not, then you can try to use if() in the "Enable Conditional" in the Dimension tab to filter the ID you want.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 09:18:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-firstsortedvalue/m-p/725361#M670919</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-30T09:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with firstsortedvalue</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-firstsortedvalue/m-p/725362#M670920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My where clause is like from_task='Start' to_task='Build'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 09:19:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-firstsortedvalue/m-p/725362#M670920</guid>
      <dc:creator />
      <dc:date>2014-09-30T09:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with firstsortedvalue</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-firstsortedvalue/m-p/725363#M670921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zhihong,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are 100's of users, i cannot filter based on one user.&lt;BR /&gt;I tried in the expression with distinct keyword, but its not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 09:22:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-firstsortedvalue/m-p/725363#M670921</guid>
      <dc:creator />
      <dc:date>2014-09-30T09:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with firstsortedvalue</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-firstsortedvalue/m-p/725364#M670922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you want the users who has both &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;from_task='Start' and to_task='Build'?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you post your script along with your sample data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 09:22:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-firstsortedvalue/m-p/725364#M670922</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-09-30T09:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with firstsortedvalue</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-firstsortedvalue/m-p/725365#M670923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anbu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left JOin(MasterTable)&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bundle,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID as UserID&lt;/P&gt;&lt;P&gt;From table.qvd&lt;/P&gt;&lt;P&gt;where &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.222222328186px; background-color: #f6f6f6;"&gt;from_task='Start' &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.222222328186px; background-color: #f6f6f6;"&gt;and to_task='Build';&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 09:26:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-firstsortedvalue/m-p/725365#M670923</guid>
      <dc:creator />
      <dc:date>2014-09-30T09:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with firstsortedvalue</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-firstsortedvalue/m-p/725366#M670924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is join key to your master table? Above where clause won't affect results of master table since left join is performed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 09:38:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-firstsortedvalue/m-p/725366#M670924</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-09-30T09:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with firstsortedvalue</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-firstsortedvalue/m-p/725367#M670925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bundle is the join key to the master table which is unique. &lt;/P&gt;&lt;P&gt;Yes it will not affect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 09:41:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-firstsortedvalue/m-p/725367#M670925</guid>
      <dc:creator />
      <dc:date>2014-09-30T09:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with firstsortedvalue</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-firstsortedvalue/m-p/725368#M670926</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 the same in Resident load , that may work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 09:43:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-firstsortedvalue/m-p/725368#M670926</guid>
      <dc:creator>sasikanth</dc:creator>
      <dc:date>2014-09-30T09:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with firstsortedvalue</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-firstsortedvalue/m-p/725369#M670927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, SIndhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it is possible that Where clause is ignored with LOAD directly, see same problem &lt;A _jive_internal="true" href="https://community.qlik.com/thread/31935"&gt;here &lt;/A&gt;.&lt;/P&gt;&lt;P&gt;You can try first load the whole table as table_temp, and then use:&lt;/P&gt;&lt;P&gt;Left join(..)&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Resident table_temp&lt;/P&gt;&lt;P&gt;Where &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12.222222328186px; background-color: #f6f6f6;"&gt;from_task='Start'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12.222222328186px; background-color: #f6f6f6;"&gt;and to_task='Build';&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 09:47:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-firstsortedvalue/m-p/725369#M670927</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-30T09:47:18Z</dc:date>
    </item>
  </channel>
</rss>

