<?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 Expression link with 2 colums from 2 tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-link-with-2-colums-from-2-tables/m-p/292154#M1182029</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's work but I don't understand why it dosn't work with the the expression&lt;/P&gt;&lt;P&gt;sum({&amp;lt;[RESIDENCE_NUM_INVOICE]=[RESIDENCE_NUM]&amp;gt;}ENTREE)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 22 Jan 2012 08:23:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-01-22T08:23:02Z</dc:date>
    <item>
      <title>Expression link with 2 colums from 2 tables</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-link-with-2-colums-from-2-tables/m-p/292152#M1182026</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 2 tables linked with one column&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Invoice&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fam_num&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; residence_ num_invoice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Residence&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fam_num&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; residence_num&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to make a chart where the residence_num_invoice = residence num&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression I am using is given below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;[RESIDENCE_NUM_INVOICE]=[RESIDENCE_NUM]&amp;gt;}ENTREE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I get Result = 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I am replace RESIDENCE_NUM by a number that exists, all is right&lt;/P&gt;&lt;P&gt;sum({&amp;lt;[RESIDENCE_NUM_INVOICE]={4117}&amp;gt;}ENTREE) for example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's the problem in the first expression ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 07:38:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-link-with-2-colums-from-2-tables/m-p/292152#M1182026</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-20T07:38:24Z</dc:date>
    </item>
    <item>
      <title>Expression link with 2 colums from 2 tables</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-link-with-2-colums-from-2-tables/m-p/292153#M1182028</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;maybe something like this might help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(If(RESIDENCE_NUM_INVOICE = RESIDENCE_NUM, ENTREE, 0))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jan 2012 17:53:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-link-with-2-colums-from-2-tables/m-p/292153#M1182028</guid>
      <dc:creator />
      <dc:date>2012-01-21T17:53:13Z</dc:date>
    </item>
    <item>
      <title>Expression link with 2 colums from 2 tables</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-link-with-2-colums-from-2-tables/m-p/292154#M1182029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's work but I don't understand why it dosn't work with the the expression&lt;/P&gt;&lt;P&gt;sum({&amp;lt;[RESIDENCE_NUM_INVOICE]=[RESIDENCE_NUM]&amp;gt;}ENTREE)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Jan 2012 08:23:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-link-with-2-colums-from-2-tables/m-p/292154#M1182029</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-22T08:23:02Z</dc:date>
    </item>
    <item>
      <title>Expression link with 2 colums from 2 tables</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-link-with-2-colums-from-2-tables/m-p/292155#M1182031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;This is because the expression assumes that a selection was made in the field RESIDENCE_NUM so you can compare it to RESIDENCE_NUM_INVOICE (otherwise it returns Null).&lt;/DIV&gt;&lt;DIV&gt;That's why it worked when you passed a real value {4117}, and will also work if you select that value from a listbox.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Your expression can work when using the Possible values function P() like this:&lt;/DIV&gt;&lt;DIV&gt;I tried with a very simple scenario:&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;DIV&gt;&lt;BR /&gt; &lt;EM&gt;t1&lt;/EM&gt;:&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; fam_num, residence_num_invoice, entree&lt;BR /&gt; 1,1123,55&lt;BR /&gt; 1,2233,40&lt;BR /&gt; 2,1132,45&lt;BR /&gt; 2,3344,122&lt;BR /&gt; 3,2535,500&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;BR /&gt; &lt;EM&gt;t2&lt;/EM&gt;:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; fam_num, residence_num&lt;BR /&gt; 1,1111&lt;BR /&gt; 1,1123&lt;BR /&gt; 2,1132&lt;BR /&gt; 2,4433&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;and using this as expression in a pivot table having fam_num as dimension:&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;residence_num_invoice&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;P&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;residence_num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;entree&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt; &lt;/DIV&gt;&lt;DIV&gt;and i got same result as the expression with the if condition.&lt;/DIV&gt;&lt;DIV&gt;you might have to switch between both of above fields depending on your case, just try to see which one gives you your desired result.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Hope i was able to explain at least what i know &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Jan 2012 09:22:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-link-with-2-colums-from-2-tables/m-p/292155#M1182031</guid>
      <dc:creator />
      <dc:date>2012-01-22T09:22:25Z</dc:date>
    </item>
  </channel>
</rss>

