<?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 and Data Model in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Data-Model/m-p/675011#M474296</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;Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aggr(only({&amp;lt;Material = {'A', 'B'}&amp;gt; * &amp;lt;Qty = {'&amp;gt;0'}&amp;gt;} Case),Key,Material)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Sep 2014 15:29:59 GMT</pubDate>
    <dc:creator>PrashantSangle</dc:creator>
    <dc:date>2014-09-23T15:29:59Z</dc:date>
    <item>
      <title>Set Analysis and Data Model</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Data-Model/m-p/675009#M474294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a question about how set analysis expression evaluate depending on your data model.&amp;nbsp; I have a situation where I have cases and each case has several materials associated with it and each material is either used or unused.&amp;nbsp; I wanted to use set analysis to get the set of cases with certain materials that were also used (the intersection of the set containing just those materials and the set containing only used materials).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;The case identifier is linked to the material usage with a key dimension.&amp;nbsp; Like this:&lt;IMG alt="export.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/67450_export.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;When I use the expression that does the intersection and returns the Key dimension, the intersection works properly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;Material&lt;/SPAN&gt; = {'A', 'B'}&amp;gt; * &amp;lt;&lt;SPAN style="color: #800000;"&gt;Qty&lt;/SPAN&gt; = {'&amp;gt;0'}&amp;gt;} &lt;SPAN style="color: #800000;"&gt;Key&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;When I use the expression that does the intersection and returns the Case dimension, the intersection does not work properly and returns additional cases as belonging to the set.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;Material&lt;/SPAN&gt; = {'A', 'B'}&amp;gt; * &amp;lt;&lt;SPAN style="color: #800000;"&gt;Qty&lt;/SPAN&gt; = {'&amp;gt;0'}&amp;gt;} &lt;SPAN style="color: #800000;"&gt;Case&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG alt="Capture.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/67466_Capture.PNG.png" style="width: 620px; height: 130px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I have attached an example QVW illustrating this example.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Obviously there is something that I don't understand about how set analysis expressions interact with the data model.&amp;nbsp; Any help or explanation is much appreciated!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 15:06:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Data-Model/m-p/675009#M474294</guid>
      <dc:creator>sarahplymale</dc:creator>
      <dc:date>2014-09-23T15:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and Data Model</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Data-Model/m-p/675010#M474295</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;Try with Aggr()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aggr(only({&amp;lt;Material = {'A', 'B'}&amp;gt; * &amp;lt;Qty = {'&amp;gt;0'}&amp;gt;} Case),Key)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 15:14:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Data-Model/m-p/675010#M474295</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-09-23T15:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and Data Model</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Data-Model/m-p/675011#M474296</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;Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aggr(only({&amp;lt;Material = {'A', 'B'}&amp;gt; * &amp;lt;Qty = {'&amp;gt;0'}&amp;gt;} Case),Key,Material)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 15:29:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Data-Model/m-p/675011#M474296</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-09-23T15:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and Data Model</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Data-Model/m-p/675012#M474297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Yep, that works for getting the intersection correctly and returning the Case!&amp;nbsp; Thanks!&amp;nbsp; Can you explain what is happening here?&amp;nbsp; I'm new to QlikView, and I don't uderstand what the aggr() function is doing here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 15:34:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Data-Model/m-p/675012#M474297</guid>
      <dc:creator>sarahplymale</dc:creator>
      <dc:date>2014-09-23T15:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and Data Model</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Data-Model/m-p/675013#M474298</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;Basically it is like simple mathematics.&lt;/P&gt;&lt;P&gt;When you use intersection of two sets it takes all possible combination of result of two sets.&lt;/P&gt;&lt;P&gt;So find the required data we have to use aggregate using Key field and dimension field&lt;/P&gt;&lt;P&gt;Here Key and Material will give you unique data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way I am very bad in explaining &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt; .I hope you understand what i want to suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 15:47:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Data-Model/m-p/675013#M474298</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-09-23T15:47:14Z</dc:date>
    </item>
  </channel>
</rss>

