<?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 Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/632226#M1092002</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is called indirect set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. -= excludes the values inside {}.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; so [Product Type]-={'Drinks'} Order gets us 'Order1'.&lt;/P&gt;&lt;P&gt;2. Then comes the indirect set analysis&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exclude all records that are ever associated with 'Order1', which eliminates both rows that have 'Order1' as the Order.&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; Now we have only 30, 40 and hence 70 the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 May 2014 05:16:35 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-05-14T05:16:35Z</dc:date>
    <item>
      <title>Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/632218#M1091994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement to identify all the sales with a particular product type. Can you please help me to write a set analysis expression. I have tried many but couldn't achieve my requirement. Here is an example:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Order&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Product Type&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Sales&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Order1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Stationary&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Order1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Drinks&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Order2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Drinks&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Order3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Drinks&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my requirement I want to identify all the sales with only drinks in them. So my expression output has to be Order2+Order3=70.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;mc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 04:49:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/632218#M1091994</guid>
      <dc:creator />
      <dc:date>2014-05-14T04:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/632219#M1091995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=Sum({&amp;lt;[Product Type]={'Drinks'}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And why not 50+30+40 ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 04:52:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/632219#M1091995</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-05-14T04:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/632220#M1091996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks tresesco. but this expression fetches Order1 as well. I do not want Order1 to be counted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;MC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 04:54:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/632220#M1091996</guid>
      <dc:creator />
      <dc:date>2014-05-14T04:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/632221#M1091997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then,&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;&lt;STRONG&gt;Order - ={'Order1'}&lt;/STRONG&gt;, [Product Type]={'Drinks'}&amp;gt;} Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 04:56:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/632221#M1091997</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-05-14T04:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/632222#M1091998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The above table is just an example where as real time data has millions of orders and how to identify orders with only Drinks?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 05:00:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/632222#M1091998</guid>
      <dc:creator />
      <dc:date>2014-05-14T05:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/632223#M1091999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PFA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 05:03:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/632223#M1091999</guid>
      <dc:creator />
      <dc:date>2014-05-14T05:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/632224#M1092000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=Sum({Order=e{&amp;lt;[Product Type]-={'Drinks'}&amp;gt;}Order)&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this or look at my qvw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 05:05:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/632224#M1092000</guid>
      <dc:creator />
      <dc:date>2014-05-14T05:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/632225#M1092001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much &lt;A href="https://community.qlik.com/qlik-users/145311"&gt;Ramkumar Ramagopalan&lt;/A&gt;. It is just spot on.&lt;/P&gt;&lt;P&gt;Can you please help me in understanding the usage of "-=" in this expression? I know that it is useful to implicitly exclude the values but couldn't understand in this context.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once again thanks for your advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;mc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 05:13:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/632225#M1092001</guid>
      <dc:creator />
      <dc:date>2014-05-14T05:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/632226#M1092002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is called indirect set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. -= excludes the values inside {}.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; so [Product Type]-={'Drinks'} Order gets us 'Order1'.&lt;/P&gt;&lt;P&gt;2. Then comes the indirect set analysis&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exclude all records that are ever associated with 'Order1', which eliminates both rows that have 'Order1' as the Order.&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; Now we have only 30, 40 and hence 70 the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 05:16:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/632226#M1092002</guid>
      <dc:creator />
      <dc:date>2014-05-14T05:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/632227#M1092003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramukumar,&lt;/P&gt;&lt;P&gt;Could you please clarify below query.&lt;/P&gt;&lt;P&gt;When I modified the expression to &lt;/P&gt;&lt;P&gt;=Sum({1&amp;lt;order=e({1&amp;lt;[Product Type]-={'Drinks','Stationary'}&amp;gt;}order)&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;I am getting total as 320, I expected the result to be 70. What is happening here?&lt;/P&gt;&lt;P&gt;I would also like to know how to fetch sales with "Drinks" and "Stationary" in single sale. In this case total has to be 250.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 06:04:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/632227#M1092003</guid>
      <dc:creator />
      <dc:date>2014-05-14T06:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/632228#M1092004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=Sum({1&amp;lt;order=e({1&amp;lt;[Product Type]-={'Drinks','Stationary'}&amp;gt;}order)&amp;gt;} Sales)&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: 10pt; line-height: 1.5em;"&gt;Here Result of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Product Type]-={'Drinks','Stationary'} is empty and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;e({1&amp;lt;[Product Type]-={'Drinks','Stationary'}&amp;gt;}order&lt;/SPAN&gt; gives all orders. Hence the result is 320&lt;/SPAN&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: 10pt; 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: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Fetch sales with Drinks and Stationary&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;order=P({&amp;lt;[Product Type]={'Drinks'}&amp;gt;}order)&amp;gt;*&amp;lt;order=P({&amp;lt;[Product Type]={'Stationary'}&amp;gt;}order)&amp;gt;} Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 06:36:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/632228#M1092004</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-05-14T06:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/632229#M1092005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Hope it will help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;order=P({&amp;lt;[Product Type]={'Drinks','Stationary'}&amp;gt;}order)&amp;gt;}sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 08:46:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/632229#M1092005</guid>
      <dc:creator />
      <dc:date>2014-05-14T08:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/632230#M1092006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry &lt;A href="https://community.qlik.com/qlik-users/141253"&gt;Shweta Singh&lt;/A&gt; your expression didn't work. It returns 320.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 21:41:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/632230#M1092006</guid>
      <dc:creator />
      <dc:date>2014-05-14T21:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/632231#M1092007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, anbucheliyan's expression should be able to resolve your other questions. Do you have any other questions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 00:41:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/632231#M1092007</guid>
      <dc:creator />
      <dc:date>2014-05-16T00:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/632232#M1092008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you &lt;A href="https://community.qlik.com/qlik-users/145311"&gt;Ramkumar Ramagopalan&lt;/A&gt; . I have few more questions , I will post them soon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One gain thank you so much for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 01:06:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/632232#M1092008</guid>
      <dc:creator />
      <dc:date>2014-05-16T01:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/632233#M1092009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I hope this may help you&lt;/P&gt;&lt;P&gt;Sum(cost) - if(aggr(count(product_s),order_id)&amp;gt;1,sum(cost),0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 05:39:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/632233#M1092009</guid>
      <dc:creator />
      <dc:date>2014-05-16T05:39:40Z</dc:date>
    </item>
  </channel>
</rss>

