<?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 Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/845424#M1001560</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do I alter the following expression to use set analysis rather than an If-statement so that Bill-To Keys &amp;lt;&amp;gt; 1 do not return in the table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Aggr({$&amp;lt;SOURCE = {'ORDER'}&amp;gt;} Count(DISTINCT [Document Counter]), %BILLTO_KEY)=1,Sum([Item Net Value (USD)]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried this ...&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Aggr({$&amp;lt;SOURCE = {'ORDER'}&amp;gt;} Count(DISTINCT [Document Counter]), %BILLTO_KEY)={1}&amp;gt;} [Item Net Value (USD)])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but is does not work (see below).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Aggr.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/89823_Aggr.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jun 2015 20:24:35 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-06-17T20:24:35Z</dc:date>
    <item>
      <title>Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/845424#M1001560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do I alter the following expression to use set analysis rather than an If-statement so that Bill-To Keys &amp;lt;&amp;gt; 1 do not return in the table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Aggr({$&amp;lt;SOURCE = {'ORDER'}&amp;gt;} Count(DISTINCT [Document Counter]), %BILLTO_KEY)=1,Sum([Item Net Value (USD)]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried this ...&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Aggr({$&amp;lt;SOURCE = {'ORDER'}&amp;gt;} Count(DISTINCT [Document Counter]), %BILLTO_KEY)={1}&amp;gt;} [Item Net Value (USD)])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but is does not work (see below).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Aggr.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/89823_Aggr.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 20:24:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/845424#M1001560</guid>
      <dc:creator />
      <dc:date>2015-06-17T20:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/845425#M1001561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({$&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;%BILLTO_KEY&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN&gt;= {"=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Aggr({$&amp;lt;SOURCE = {'ORDER'}&amp;gt;} Count(DISTINCT [Document Counter]), %BILLTO_KEY) &amp;lt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;1"}&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;&amp;gt;} [Item Net Value (USD)])&lt;/SPAN&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; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&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; line-height: 1.5em;"&gt;I haven't tested this yet, though you need to use a search in your set analysis &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 20:34:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/845425#M1001561</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-06-17T20:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/845426#M1001562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank Ramon!&lt;/P&gt;&lt;P&gt;This did the opposite of what I was looking for but I switched the &amp;lt;&amp;gt; to = and it worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 20:38:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/845426#M1001562</guid>
      <dc:creator />
      <dc:date>2015-06-17T20:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/845427#M1001563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am glad it worked &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 20:44:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/845427#M1001563</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-06-17T20:44:25Z</dc:date>
    </item>
  </channel>
</rss>

