<?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 being ignored in one table but not another in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-being-ignored-in-one-table-but-not-another/m-p/409294#M563392</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think yo have one too many equals signs in the second part of the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({$&amp;lt;[Financial Year] = {'$(vMaxYear)'},RowCountInbound =&amp;nbsp; {"=Skills=SkillsCheckInbound"}&amp;gt;}distinct CallID) &lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;[Financial Year] = {'$(vMaxYear)'},RowCountHist = {"=Skills=SkillsCheckHist"}&amp;gt;}[Calls Offered])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Feb 2013 11:42:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-02-06T11:42:47Z</dc:date>
    <item>
      <title>Set Analysis being ignored in one table but not another</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-being-ignored-in-one-table-but-not-another/m-p/409293#M563391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having an issue with Set Analysis on a chart where it doesn't appear to be applying the field specified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression is built around 2 set analysis expressions being added;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({$&amp;lt;[Financial Year] = {'$(vMaxYear)'},RowCountInbound =&amp;nbsp; {"=Skills=SkillsCheckInbound"}&amp;gt;}distinct CallID) &lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;[Financial Year] = {'=$(vMaxYear)'},RowCountHist = {"= SkillsCheckHist = Skills"}&amp;gt;}[Calls Offered])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first line works as expected, however the second line doesn't seem to applying the [Financial Year] = $(vMaxYear) part. Even when i cut the expression down to just;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;[Financial Year] = {'=$(vMaxYear)'}&lt;/P&gt;&lt;P&gt;//,RowCountHist = {"= SkillsCheckHist = Skills"}&amp;nbsp;&amp;nbsp;&amp;nbsp; // Am now excluding this line just to check the Financial Year aspect&lt;/P&gt;&lt;P&gt;&amp;gt;}[Calls Offered])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it doesn't work via set analysis. However, selecting the field from a selection box gives the desired result. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sure it's to do with how i've set the tables up in the load script but i cannot see where i've gone wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I enclose the file, as i expect this will be easier for someone to discern by looking than explain in text. Please be aware that i've had to join 3 tables using a key to be able to get the chart to calculate correctly so please take a look at the table layout first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 11:32:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-being-ignored-in-one-table-but-not-another/m-p/409293#M563391</guid>
      <dc:creator />
      <dc:date>2013-02-06T11:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis being ignored in one table but not another</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-being-ignored-in-one-table-but-not-another/m-p/409294#M563392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think yo have one too many equals signs in the second part of the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({$&amp;lt;[Financial Year] = {'$(vMaxYear)'},RowCountInbound =&amp;nbsp; {"=Skills=SkillsCheckInbound"}&amp;gt;}distinct CallID) &lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;[Financial Year] = {'$(vMaxYear)'},RowCountHist = {"=Skills=SkillsCheckHist"}&amp;gt;}[Calls Offered])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 11:42:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-being-ignored-in-one-table-but-not-another/m-p/409294#M563392</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-06T11:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis being ignored in one table but not another</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-being-ignored-in-one-table-but-not-another/m-p/409295#M563393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sometimes it really is "Cant see the wood for the trees"! Thank you very much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 11:45:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-being-ignored-in-one-table-but-not-another/m-p/409295#M563393</guid>
      <dc:creator />
      <dc:date>2013-02-06T11:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis being ignored in one table but not another</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-being-ignored-in-one-table-but-not-another/m-p/409296#M563394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know the feeling : 0 )&lt;/P&gt;&lt;P&gt;By the way, what do these {"=Skills=SkillsCheckInbound"} and {"=Skills=SkillsCheckHist"} conditions do. I've not seens such a =...=.... syntax before.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 13:39:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-being-ignored-in-one-table-but-not-another/m-p/409296#M563394</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-06T13:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis being ignored in one table but not another</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-being-ignored-in-one-table-but-not-another/m-p/409297#M563395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It allows you to use set analysis where Field A = Field B. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my first post above, i have the field Skills and i needed set analysis to count the Call I.D.s where the related field SkillsInbound equalled the unrelated field Skills. As they're not related, i had to create the field RowCount (to remove any double counting issues!) in each field, and then have the fields Skills and SkillsInbound to be compared for each row. Where they're the same, it counts the Distinct Call I.D.s which give me the number of calls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its based on a query i had resolved on this forum a few months ago so if you check out;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/254536#254536"&gt;http://community.qlik.com/message/254536#254536&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hopefully it should make more sense. The secret is to use a rowcount for each table,its integral to it working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 14:30:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-being-ignored-in-one-table-but-not-another/m-p/409297#M563395</guid>
      <dc:creator />
      <dc:date>2013-02-06T14:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis being ignored in one table but not another</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-being-ignored-in-one-table-but-not-another/m-p/409298#M563396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for that background.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 15:04:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-being-ignored-in-one-table-but-not-another/m-p/409298#M563396</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-06T15:04:22Z</dc:date>
    </item>
  </channel>
</rss>

