<?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: Join tables in User interface in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Join-tables-in-User-interface/m-p/868413#M659017</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do that in a Set Expression where you prefix the field name with the state name and use :: as a separator between them like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum( { &amp;lt;ID={"=State1::ID1=State2::ID1"} &amp;gt; } Sales )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Apr 2015 08:24:43 GMT</pubDate>
    <dc:creator>petter</dc:creator>
    <dc:date>2015-04-08T08:24:43Z</dc:date>
    <item>
      <title>Join tables in User interface</title>
      <link>https://community.qlik.com/t5/QlikView/Join-tables-in-User-interface/m-p/868407#M659011</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;I have&amp;nbsp; a question: is there a way to do a join between two tables in &lt;STRONG&gt;user interface&lt;/STRONG&gt;? I know I can so it while scripting, but I need to create something more complicated. &lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1 (using alternate state)&lt;/P&gt;&lt;P&gt;John Doe&lt;/P&gt;&lt;P&gt;Richard Smith&lt;/P&gt;&lt;P&gt;Mary Guinness&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2 (using alternate state 2 as they're the same records as before but a different selection)&lt;/P&gt;&lt;P&gt;John Doe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to create a table 3 where I'd like to do an inner join to keep records that are in table 1 but not in table 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Diego&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 15:07:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-tables-in-User-interface/m-p/868407#M659011</guid>
      <dc:creator />
      <dc:date>2015-04-07T15:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Join tables in User interface</title>
      <link>https://community.qlik.com/t5/QlikView/Join-tables-in-User-interface/m-p/868408#M659012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually there are several ways of achieving it in QlikView... but it is not necessarily intuitive and it might not perform extremely well with a large number of records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) You can use CONCATENATE so both tables are considered as one QlikView logical table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Should actually perform quite well when you do Set Expressions and use the set operators between&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; subsets of the same table * + - / (set operations) that corresponds to join operators ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) You can use a combination of Match, SubField and Concatenate - which might not perform so well with&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; large number of records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Just to give you some idea of an expression that works in a sample app I made:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;SubField( Concat( DISTINCT ID2 ,',', Num2) , ',' , Match( Num1 , $(=Concat( DISTINCT Num2, ',', Num2 ))) )&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 15:55:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-tables-in-User-interface/m-p/868408#M659012</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-04-07T15:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Join tables in User interface</title>
      <link>https://community.qlik.com/t5/QlikView/Join-tables-in-User-interface/m-p/868409#M659013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow thanks Petter, seems pretty far from my actual level... Gotta study what you said to undestand, but thanks for the hint&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 16:03:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-tables-in-User-interface/m-p/868409#M659013</guid>
      <dc:creator />
      <dc:date>2015-04-07T16:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Join tables in User interface</title>
      <link>https://community.qlik.com/t5/QlikView/Join-tables-in-User-interface/m-p/868410#M659014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Petter,&lt;/P&gt;&lt;P&gt;sorry to bother you. Can you help me with an example? &lt;/P&gt;&lt;P&gt;I have two tables (user interface, not in the script):&lt;/P&gt;&lt;P&gt;table1&lt;/P&gt;&lt;P&gt;-code &lt;/P&gt;&lt;P&gt;-name&lt;/P&gt;&lt;P&gt;table2&lt;/P&gt;&lt;P&gt;-code &lt;/P&gt;&lt;P&gt;-name&lt;/P&gt;&lt;P&gt;Both are based on the same table loaded in the script, using two alternate states.&lt;/P&gt;&lt;P&gt;How can I do what you suggested?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 06:38:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-tables-in-User-interface/m-p/868410#M659014</guid>
      <dc:creator />
      <dc:date>2015-04-08T06:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Join tables in User interface</title>
      <link>https://community.qlik.com/t5/QlikView/Join-tables-in-User-interface/m-p/868411#M659015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this scenario you could just use a Pivot Table without any logic. Just have code and name as dimensions and pivot the name to a column. You have to have name as an expression too like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;only(name)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 06:52:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-tables-in-User-interface/m-p/868411#M659015</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-04-08T06:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Join tables in User interface</title>
      <link>https://community.qlik.com/t5/QlikView/Join-tables-in-User-interface/m-p/868412#M659016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok maybe this is a silly question but.. How can I compare in the pivot fields coming from two different alternate state?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 07:38:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-tables-in-User-interface/m-p/868412#M659016</guid>
      <dc:creator />
      <dc:date>2015-04-08T07:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: Join tables in User interface</title>
      <link>https://community.qlik.com/t5/QlikView/Join-tables-in-User-interface/m-p/868413#M659017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do that in a Set Expression where you prefix the field name with the state name and use :: as a separator between them like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum( { &amp;lt;ID={"=State1::ID1=State2::ID1"} &amp;gt; } Sales )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 08:24:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-tables-in-User-interface/m-p/868413#M659017</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-04-08T08:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Join tables in User interface</title>
      <link>https://community.qlik.com/t5/QlikView/Join-tables-in-User-interface/m-p/868414#M659018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok you're doing a sum. But I'm not going to sum or aggregate, so I don't know how to do that.. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 09:42:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-tables-in-User-interface/m-p/868414#M659018</guid>
      <dc:creator />
      <dc:date>2015-04-08T09:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Join tables in User interface</title>
      <link>https://community.qlik.com/t5/QlikView/Join-tables-in-User-interface/m-p/868415#M659019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have other non-numeric aggregations and pseudo-aggregations available:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only() which could be termed as a pseudo-aggregation since it doesn't aggregate anything only pick the only value and the rest of the values have to be NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concat() which concatenates the numbers or strings into one long string with a chosen delimiter between the values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I find the Concat() extremely handy also during development because I can have a peek at the actual values before I replace the Concat() with the aggregation I want. In a lot of instances it is exactly what I want as a result too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you for instance use Concat( name , ' / ') ... you will get something like 'John / Mary / Paul / Steven / Tom' if the field [name] contains 5 values ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 10:52:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-tables-in-User-interface/m-p/868415#M659019</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-04-08T10:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Join tables in User interface</title>
      <link>https://community.qlik.com/t5/QlikView/Join-tables-in-User-interface/m-p/868416#M659020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Furthermore - if you are certain that your dimensions always will return one single value from a field and you dont enable any drill-down functionality you can use a field directly... That is the same as using the Only() function. Actually QlikView wraps the field in an Only()-function behind the scenes anyway if you don't do it yourself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The advantage of wrapping the field in the Only() function is that you can use Set Expression as a part of it - so even if your dimensions doesn't fully specify so you get one value you can actually use the Set Expression to further qualify so that you get the single value you need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 11:00:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-tables-in-User-interface/m-p/868416#M659020</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-04-08T11:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Join tables in User interface</title>
      <link>https://community.qlik.com/t5/QlikView/Join-tables-in-User-interface/m-p/868417#M659023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Hi Peter,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;I have a similar question and am hoping you can provide a bit of guidance.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;If I have two alternate states with, again, the same table and make different selections in each alternate state, how can I see a table with results of the combined states. Here's an example. Is this possible?&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Thank you.&lt;IMG alt="Qlik Example.jpg" class="jive-image image-1" src="/legacyfs/online/97328_Qlik Example.jpg" style="font-size: 13.3333330154419px; line-height: 1.5em; height: 679px; width: 620px;" /&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 22:22:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-tables-in-User-interface/m-p/868417#M659023</guid>
      <dc:creator />
      <dc:date>2015-08-28T22:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Join tables in User interface</title>
      <link>https://community.qlik.com/t5/QlikView/Join-tables-in-User-interface/m-p/868418#M659024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to use Set Analysis with the Boolean addition to get the sum of the two States. Something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum( {State1+State2} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something similar should also work for the original question in this thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.amazon.com/gp/product/1118949552/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=1118949552&amp;amp;linkCode=as2&amp;amp;tag=natursyner0f-20&amp;amp;linkId=HEF4KYLLE22XIQH2"&gt;QlikView Your Business: An expert guide to Business Discovery with QlikView and Qlik Sense&lt;/A&gt;&lt;IMG alt="" border="0" height="1" src="http://ir-na.amazon-adsystem.com/e/ir?t=natursyner0f-20&amp;amp;l=as2&amp;amp;o=1&amp;amp;a=1118949552" style="border: none !important; margin: 0px !important;" width="1" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 22:26:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-tables-in-User-interface/m-p/868418#M659024</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2015-08-28T22:26:02Z</dc:date>
    </item>
  </channel>
</rss>

