<?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: Set Analysis Issue : Compare Fields between two tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue-Compare-Fields-between-two-tables/m-p/758384#M269889</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 hope your data set is very small, otherwise this structure will perform poorly or not at all. Expressions with fields from unassociated tables require QV do a cartesian join between the two tables. For example, if they each contain 10,000 rows, the join will be 100 million rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either create a selection in the budget table, concatenate T1 and T2, or join the tables by using common Year, Month fields (or a YearMonthKey if you don't want a synthetic key)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Feb 2015 07:21:15 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2015-02-20T07:21:15Z</dc:date>
    <item>
      <title>Set Analysis Issue : Compare Fields between two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue-Compare-Fields-between-two-tables/m-p/758383#M269888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;T1.Year and T1.Month Field is available in Table1&lt;/P&gt;&lt;P&gt;T2.Year, T2.Month and T2.Budget is available in Table 2&lt;/P&gt;&lt;P&gt;Now, These tables are not linked with each other. T1.Year and T1.Month are the filters in the Dashboard. If no Year and Month is selected the expression should give me sum of all Budget for the Year and Month present in Table1. If a Year or Month is selected Table2 should fetch the Budget only for the selected Year and Month.&lt;/P&gt;&lt;P&gt;Expression Used:&lt;/P&gt;&lt;P&gt;sum( {&amp;lt;T1.Year={"=T1.Year=T2.Year"}, T1.Month={"=T1.Month=T2.Month"}, &amp;gt;} T2.Budget)&lt;/P&gt;&lt;P&gt;Can anybody please help me with a suitable solution for this &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2015 06:32:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue-Compare-Fields-between-two-tables/m-p/758383#M269888</guid>
      <dc:creator />
      <dc:date>2015-02-20T06:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Issue : Compare Fields between two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue-Compare-Fields-between-two-tables/m-p/758384#M269889</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 hope your data set is very small, otherwise this structure will perform poorly or not at all. Expressions with fields from unassociated tables require QV do a cartesian join between the two tables. For example, if they each contain 10,000 rows, the join will be 100 million rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either create a selection in the budget table, concatenate T1 and T2, or join the tables by using common Year, Month fields (or a YearMonthKey if you don't want a synthetic key)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2015 07:21:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue-Compare-Fields-between-two-tables/m-p/758384#M269889</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-02-20T07:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Issue : Compare Fields between two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue-Compare-Fields-between-two-tables/m-p/758385#M269890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If T2 contains Month and Year , then why don't you use these fields as filter??&lt;/P&gt;&lt;P&gt;If you still want Sum of budget to be filtered on T1.Year and T1.Month selection , then you can rename T2.Year and T2.Month as T1.Year and T1.Year respectively.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2015 08:43:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue-Compare-Fields-between-two-tables/m-p/758385#M269890</guid>
      <dc:creator>timanshu</dc:creator>
      <dc:date>2015-02-20T08:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Issue : Compare Fields between two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue-Compare-Fields-between-two-tables/m-p/758386#M269891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The field on the left-hand-side of the equal sign has to be a unique identifier for the table in question or the the comparison will fail. So you don't need to repeat the T1.Year you should rather write T1.ID (or whatever field is a unique identfier). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Jonathan points out this might be a very costly operation when it comes to performance - so be careful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Sum( { &amp;lt;T1.ID={ "=T1.Year=T2.Year AND T1.Month=T2.Month" } &amp;gt; } T2.Budget )&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Jul 2015 10:56:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Issue-Compare-Fields-between-two-tables/m-p/758386#M269891</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-07-26T10:56:50Z</dc:date>
    </item>
  </channel>
</rss>

