<?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: Problem aggregating a table and joining in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-aggregating-a-table-and-joining/m-p/824150#M473024</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DataNibbler,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I upload a sample you can use to join with &lt;SPAN style="font-size: 8pt;"&gt;Transaction_aux only by &lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TRACKING_NUMBER&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Nov 2014 11:35:08 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2014-11-26T11:35:08Z</dc:date>
    <item>
      <title>Problem aggregating a table and joining</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-aggregating-a-table-and-joining/m-p/824149#M473023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following scenario:&lt;/P&gt;&lt;P&gt;- From our database I get a list of bookings, each with an exact date-time-stamp and the signon of the user. I will attach a small sample file to illustrate what I have&lt;/P&gt;&lt;P&gt;- I want the last (actually the second-to-last) booking of each individual box - the others are not relevant.&lt;/P&gt;&lt;P&gt;- To this end, I aggregate and I use the max() function to get the last entry, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Noconcatenate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Transaction_aux:&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TRACKING_NUMBER&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;Track_AOS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &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;TRAN_DATE&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;Letzte_Buchung&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;RESIDENT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Transaction_Details_pre&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;TRACKING_NUMBER&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(I&amp;nbsp; cannot include the user here, otherwise I'd only get the last posting grouped by user, but I want the absolute last booking of that box)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;The next step is to join the user from the original table via the TRACKING_NUMBER and the TRAN_DATE (which, together, form a unique key to every booking)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;JOIN &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (Transaction_aux)&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TRACKING_NUMBER&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;Track_AOS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TRAN_DATE&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;Letzte_Buchung&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;USER_SIGNO&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;Letzter_Bucher&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;RESIDENT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Transaction_Details_pre;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;DROP&lt;/STRONG&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; Transaction_Details_pre; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;=&amp;gt; For some reason, I still have multiple bookings - and thus multiple users - in the resulting table though the date-time-stamp is not the same.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Needless to say, I cannot use that - I need exactly one booking per TRACKING_NUMBER so I can then join with the names of the employees who were on duty &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at that time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Can anyone help me here?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks a lot!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;DataNibbler&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 11:16:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-aggregating-a-table-and-joining/m-p/824149#M473023</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-11-26T11:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem aggregating a table and joining</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-aggregating-a-table-and-joining/m-p/824150#M473024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DataNibbler,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I upload a sample you can use to join with &lt;SPAN style="font-size: 8pt;"&gt;Transaction_aux only by &lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TRACKING_NUMBER&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 11:35:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-aggregating-a-table-and-joining/m-p/824150#M473024</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2014-11-26T11:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem aggregating a table and joining</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-aggregating-a-table-and-joining/m-p/824151#M473025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not quite sure what you're after. Maybe this helps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14170021355396229" jivemacro_uid="_14170021355396229"&gt;
&lt;P&gt;Data:&lt;/P&gt;
&lt;P&gt;LOAD TRACKING_NUMBER,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TRAN_DATE,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; USER&lt;/P&gt;
&lt;P&gt;FROM [comm143662.xlsx] (ooxml, embedded labels, table is Sheet1);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;join(Data)&lt;/P&gt;
&lt;P&gt;LOAD TRACKING_NUMBER, max(TRAN_DATE,2) as TRAN_DATE, 1 as SecondToLastFlag&lt;/P&gt;
&lt;P&gt;Resident Data&lt;/P&gt;
&lt;P&gt;GROUP BY TRACKING_NUMBER;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want the user name instead you could use this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14170021355272907" jivemacro_uid="_14170021355272907"&gt;
&lt;P&gt;Users:&lt;/P&gt;
&lt;P&gt;LOAD TRACKING_NUMBER, FirstSortedValue(USER,-TRAN_DATE,2) as USER_OF_INTEREST&lt;/P&gt;
&lt;P&gt;FROM [comm143662.xlsx] (ooxml, embedded labels, table is Sheet1)&lt;/P&gt;
&lt;P&gt;GROUP BY TRACKING_NUMBER;&lt;/P&gt;

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 11:41:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-aggregating-a-table-and-joining/m-p/824151#M473025</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-11-26T11:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem aggregating a table and joining</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-aggregating-a-table-and-joining/m-p/824152#M473026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that seems worth a try. I hadn't thought of using this function. The effect should be basically the same as by aggregating with max().&lt;/P&gt;&lt;P&gt;Let's see.&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 12:28:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-aggregating-a-table-and-joining/m-p/824152#M473026</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-11-26T12:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem aggregating a table and joining</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-aggregating-a-table-and-joining/m-p/824153#M473027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;well, what I actually want is two things:&lt;/P&gt;&lt;P&gt;- The (date-time-stamp of the) very last booking out of that list of bookings I get from our database&lt;/P&gt;&lt;P&gt;- The user who effected it&lt;/P&gt;&lt;P&gt;Any way, I have to aggregate the table - whether I go for the last user first and then join the date-time-stamp or the other way round doesn't really matter.&lt;/P&gt;&lt;P&gt;In the output table I want only one date-time-stamp per box_ID and one user to match it.&lt;/P&gt;&lt;P&gt;That's it basically.&lt;/P&gt;&lt;P&gt;I'll try to find out first whether my problem is in the aggregation or in the JOIN and then I'll try Rubben's suggestion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 12:36:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-aggregating-a-table-and-joining/m-p/824153#M473027</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-11-26T12:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem aggregating a table and joining</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-aggregating-a-table-and-joining/m-p/824154#M473028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;well, I have just tested and positively confirmed that the aggregation works as expected - right after that step, I have only one date-time-stamp (in numeric format) per box.&lt;/P&gt;&lt;P&gt;=&amp;gt; The problem must be in the join. I'm not sure what can be wrong about that.&lt;/P&gt;&lt;P&gt;Unfortunately, it takes a few minutes each time I run that script. I'll try again. Maybe I have to explicitly turn both date-time-stamps into numeric format?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 12:43:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-aggregating-a-table-and-joining/m-p/824154#M473028</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-11-26T12:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem aggregating a table and joining</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-aggregating-a-table-and-joining/m-p/824155#M473029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, both the timestamp and the user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Last entry per tracking number:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro _jivemacro_uid_14170058571255797 jive_macro_code" jivemacro_uid="_14170058571255797"&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TRACKING_NUMBER,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max(TRAN_DATE) as LAST_TRAN_DATE&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstSortedValue(USER,-TRAN_DATE) as USER_OF_LAST_TRAN_DATE&lt;/P&gt;
&lt;P&gt;FROM .....&lt;/P&gt;
&lt;P&gt;GROUP BY TRACKING_NUMBER;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or if you actually want the second last entry per tracking number:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_1417005857116866" jivemacro_uid="_1417005857116866"&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TRACKING_NUMBER,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max(TRAN_DATE,2) as LAST_TRAN_DATE&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstSortedValue(USER,-TRAN_DATE,2) as USER_OF_LAST_TRAN_DATE&lt;/P&gt;
&lt;P&gt;FROM .....&lt;/P&gt;
&lt;P&gt;GROUP BY TRACKING_NUMBER;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't care about the tracking number, but want the absolute (second to) last entry then remove tracking number from the load statement and remove the group by too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 12:43:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-aggregating-a-table-and-joining/m-p/824155#M473029</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-11-26T12:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem aggregating a table and joining</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-aggregating-a-table-and-joining/m-p/824156#M473030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great!&lt;/P&gt;&lt;P&gt;I would still like to know why the JOIN doesn't work, but your suggestion with FIRSTSORTEDVALUE() looks very good.&lt;/P&gt;&lt;P&gt;I need all three informations: The date-time-stamp, the TRACKING_NUMBER (box_ID) and the user.&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 12:53:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-aggregating-a-table-and-joining/m-p/824156#M473030</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-11-26T12:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Problem aggregating a table and joining</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-aggregating-a-table-and-joining/m-p/824157#M473031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I made another sample joining and simplier, but it's the same Gysbert has posted, anyway i upload it as qvw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 12:56:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-aggregating-a-table-and-joining/m-p/824157#M473031</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2014-11-26T12:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem aggregating a table and joining</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-aggregating-a-table-and-joining/m-p/824158#M473032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now I have another strange problem.&lt;/P&gt;&lt;P&gt;With this, I get only one booking with the date-time-stamp, that is ok.&lt;/P&gt;&lt;P&gt;In some cases, I also get exactly one name, the user who did the booking.&lt;/P&gt;&lt;P&gt;&amp;lt;=&amp;gt; In other cases, no name is available. That is very strange for I don't think it is possible to log on to our database at all to do any booking there without the logon being registered.&lt;/P&gt;&lt;P&gt;I have to check that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 13:12:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-aggregating-a-table-and-joining/m-p/824158#M473032</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-11-26T13:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem aggregating a table and joining</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-aggregating-a-table-and-joining/m-p/824159#M473033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just as I thought - the names are all in the database, but for some reason I cannot get them out.&lt;/P&gt;&lt;P&gt;So the method with FirstsortedValue() does not seem to work for me after all. What a pity. Now I have to try JOINing after all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Up to now, the jOIN seems to have multiplied the records again - right after the aggregation, before the JOIN I had only one date-time-stamp and user per TRACK, after the JOIN I had many.&lt;/P&gt;&lt;P&gt;I thought QlikView always performs an INNER JOIN if not otherwise specified?&lt;/P&gt;&lt;P&gt;=&amp;gt; Then it should return only as many records as my primary table has, no? (in this case, the primary table would be the aggregated one, TD_aux, as I specify in the JOIN with the statement&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; JOIN (TD_aux) &amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 13:24:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-aggregating-a-table-and-joining/m-p/824159#M473033</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-11-26T13:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem aggregating a table and joining</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-aggregating-a-table-and-joining/m-p/824160#M473034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Firstsortedvalue will only work if exactly one value can be returned. If there are two records with exactly the same timestamp but with different users then the firstsortedvalue cannot return the user. It cannot know which of the two should be returned.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 13:45:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-aggregating-a-table-and-joining/m-p/824160#M473034</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-11-26T13:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem aggregating a table and joining</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-aggregating-a-table-and-joining/m-p/824161#M473035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, FirstsortedValue() won't work if there two or more equal "first sort" values, the one's without name has the same TRAN_DATE that another? maybe you can try with:&lt;/P&gt;&lt;P&gt;Subfield(Concat(USER, ';', -TRAN_DATE), ';', 1) as Letzter_Bucher&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think default is Outer join, anyway I prefer to identify it as inner, left, right or outer and avoid defaults.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 13:53:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-aggregating-a-table-and-joining/m-p/824161#M473035</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2014-11-26T13:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem aggregating a table and joining</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-aggregating-a-table-and-joining/m-p/824162#M473036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;default is OUTER? That would certainly explain a lot.&lt;/P&gt;&lt;P&gt;I specified the INNER JOIN now - and it works. Without any other changes to my method.&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 13:58:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-aggregating-a-table-and-joining/m-p/824162#M473036</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-11-26T13:58:21Z</dc:date>
    </item>
  </channel>
</rss>

