<?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 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/609418#M224954</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The answer to your question re Region=US AND SalesProductType&amp;lt;&amp;gt;Toys doesn't involve any set operators. Just two modifiers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&amp;lt;Region={US},SalesProductType-={Toys}&amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, since you were fishing for a syntax that mixes operators and modifiers:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{$&amp;lt;Region={US}&amp;gt; - $&amp;lt;SalesProductType={Toys}&amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Feb 2014 23:34:52 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2014-02-05T23:34:52Z</dc:date>
    <item>
      <title>Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/609416#M224952</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 am trying to get my head around set analysis. &lt;A href="https://community.qlik.com/qlik-users/2922"&gt;Tom Mackay&lt;/A&gt; has created a very useful pdf on set analysis within QlikView (attached). It discusses the three elements of set analysis (Identifiers, Operators and Modifiers).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In his example he shows a couple of examples for &lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Identifiers&lt;/STRONG&gt;&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;sum({&lt;STRONG style="color: #0000ff;"&gt;1&lt;/STRONG&gt;} Sales)&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;Then a couple of examples with &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;operators &lt;/STRONG&gt;&lt;/SPAN&gt;and &lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;identifiers&lt;/STRONG&gt;&lt;/SPAN&gt;:&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;sum({&lt;SPAN style="color: #0000ff;"&gt;1&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;-&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;$&lt;/SPAN&gt;} Sales)&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;Then a couple of examples with &lt;SPAN style="color: #339966;"&gt;&lt;STRONG&gt;modifiers&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;sum({&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #339966;"&gt;&lt;STRONG&gt;&amp;lt;Region = {US}&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;} Sales)&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;The document doesn't seem to have any that include both operators and modifiers. Is this possible? For example can I create an expression that is the Sum of all sales within the [Region] "US" and aren't [SalesProductType] of "Toys"?&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;I'm just trying to make sure I fully grasp the concept and wanted to check if this type of expression is possible?&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;Thanks&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;BR /&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 08:13:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/609416#M224952</guid>
      <dc:creator />
      <dc:date>2014-02-05T08:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/609417#M224953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, I think your expression would be the next:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #339966;"&gt;&lt;STRONG&gt;&amp;lt;Region = {US}, [SalesProductType -={'Toys'}]&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that there is a minus " - " symbol before the equal in the [SalesProductType] modifier. That indicates all possible values except 'Toys'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 22:53:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/609417#M224953</guid>
      <dc:creator>Carlos_Reyes</dc:creator>
      <dc:date>2014-02-05T22:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/609418#M224954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The answer to your question re Region=US AND SalesProductType&amp;lt;&amp;gt;Toys doesn't involve any set operators. Just two modifiers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&amp;lt;Region={US},SalesProductType-={Toys}&amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, since you were fishing for a syntax that mixes operators and modifiers:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{$&amp;lt;Region={US}&amp;gt; - $&amp;lt;SalesProductType={Toys}&amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 23:34:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/609418#M224954</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-02-05T23:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/609419#M224955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I think Set Analysis is one of the most complex things within QlikView. Besides, sometimes syntax is not that "friendly" at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About what you ask, it can be done with Set Analysis like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Region = {'US'}, SalesProductType = {'*'} - {'Toys'}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;alternately,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Region = {'US'}, SalesProductType = SalesProductType - {'Toys'}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Region = {'US'}, SalesProductType &lt;STRONG&gt;-=&lt;/STRONG&gt; {'Toys'}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that 2nd and 3rd solution will underline code as if it was a mistake, however is a bug with syntax checker&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also remember that depending on what you want to calculate, you may use &lt;STRONG&gt;$&lt;/STRONG&gt; for current selections, or &lt;STRONG&gt;1&lt;/STRONG&gt; for universe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 23:47:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/609419#M224955</guid>
      <dc:creator>jaimeaguilar</dc:creator>
      <dc:date>2014-02-05T23:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/609420#M224956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WIth a set analysis like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Region={'US'},SalesProsuctType -={'Toys'}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;MArio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 23:50:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/609420#M224956</guid>
      <dc:creator />
      <dc:date>2014-02-05T23:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/609421#M224957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at this document for other information about set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Helvetica; font-size: 15px; text-align: -webkit-auto;"&gt;&lt;A class="jive-link-external-small" href="http://iqlik.wordpress.com/2010/09/11/the-magic-of-set-analysis-syntax-and-examples/"&gt;http://iqlik.wordpress.com/2010/09/11/the-magic-of-set-analysis-syntax-and-examples/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 23:54:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/609421#M224957</guid>
      <dc:creator />
      <dc:date>2014-02-05T23:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/609422#M224958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try with&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({$ &amp;lt;Region={"US"},&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;SalesProductType&lt;/SPAN&gt;=-{"&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;Toys&lt;/SPAN&gt;"}&amp;gt;} Expression1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and see here&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-4951"&gt;Set Analysis: syntaxes, examples&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 00:28:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/609422#M224958</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-02-06T00:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/609423#M224959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;yes you can do it.&lt;/P&gt;&lt;P&gt;Please investigate deeper what p() and e() funtions are in SetAnalysis.&lt;/P&gt;&lt;P&gt;IMHO:Very good and well described examples are in QV HELP under titel SET ANALYSIS&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 00:35:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/609423#M224959</guid>
      <dc:creator />
      <dc:date>2014-02-06T00:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/609424#M224960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Region = {US},SalesProductType=SalesProductType - {Toys}&amp;gt;}sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to QlikView Help ant open the Set Analysis page there are plenty of examples there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 00:42:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/609424#M224960</guid>
      <dc:creator>iktrayanov</dc:creator>
      <dc:date>2014-02-06T00:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/609425#M224961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes it possible. Something like this Sum({1&amp;lt;Region = {'US'}, &lt;STRONG&gt;[SalesProductType] -= {'Toys'}&lt;/STRONG&gt;&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See page 10, - sign mean exclude.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sokkorn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 01:01:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/609425#M224961</guid>
      <dc:creator>Sokkorn</dc:creator>
      <dc:date>2014-02-06T01:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/609426#M224962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;This simple set analysis should do just what you asked (I think); Sum of all Sales in the US that are not Toys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Region = {'US'},SalesProductType -= {'Toys'}&amp;gt;} Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 04:00:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/609426#M224962</guid>
      <dc:creator>johnca</dc:creator>
      <dc:date>2014-02-06T04:00:58Z</dc:date>
    </item>
  </channel>
</rss>

