<?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/856794#M1018224</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;Can anyone explain to me what's the difference between these codes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These two expressions are stacked...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Product-={Cap}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Product={Cap}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These two expressions are stacked...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$-1&amp;lt;Product={Cap}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({1&amp;lt;Product={Cap}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried understanding them. Have understood to some extent. The graphs are almost the same.. So what's the difference in the codes.&lt;/P&gt;&lt;P&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>Mon, 06 Apr 2015 06:54:08 GMT</pubDate>
    <dc:creator>siddheshmane</dc:creator>
    <dc:date>2015-04-06T06:54:08Z</dc:date>
    <item>
      <title>Set analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/856794#M1018224</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;Can anyone explain to me what's the difference between these codes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These two expressions are stacked...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Product-={Cap}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Product={Cap}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These two expressions are stacked...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$-1&amp;lt;Product={Cap}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({1&amp;lt;Product={Cap}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried understanding them. Have understood to some extent. The graphs are almost the same.. So what's the difference in the codes.&lt;/P&gt;&lt;P&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>Mon, 06 Apr 2015 06:54:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/856794#M1018224</guid>
      <dc:creator>siddheshmane</dc:creator>
      <dc:date>2015-04-06T06:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/856795#M1018225</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;1 Is use all data,ignoring selections:====sum({1&amp;lt;year={2015,2014}&amp;gt;})&lt;/P&gt;&lt;P&gt;$ Is use current selections:=====sum({$&amp;lt;year={2015,2014}&amp;gt;})&lt;/P&gt;&lt;P&gt;1-$ Is use all data and&amp;nbsp; excluded records:===sum({1-$&amp;lt;year={2015}&amp;gt;})&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({&amp;lt;Product-={Cap}&amp;gt;}Sales) :- Returns record that belong to the first &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; but not the other of the two set identifiers &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({&amp;lt;Product={Cap}&amp;gt;}Sales):- &lt;SPAN style="line-height: 1.5em;"&gt;Returns record that belong to the first&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt; set identifiers &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({$-1&amp;lt;Product={Cap}&amp;gt;}Sales):-Represent the next forward selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({1&amp;lt;Product={Cap}&amp;gt;}Sales):- Represent all data in to the application.&lt;/P&gt;&lt;P&gt;try once,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;sreenu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2015 07:32:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/856795#M1018225</guid>
      <dc:creator />
      <dc:date>2015-04-06T07:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/856796#M1018226</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;Hope this will help u:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0 – empty set&lt;/P&gt;&lt;P&gt;1 – complete application&lt;/P&gt;&lt;P&gt;$ - current selection (take care that sometimes your chart or table does not use the current selection but an&lt;/P&gt;&lt;P&gt;Alternate States)&lt;/P&gt;&lt;P&gt;$1 – previous selection ($2: the second previous selection, etc.)&lt;/P&gt;&lt;P&gt;$_1 – next selection&lt;/P&gt;&lt;P&gt;Bookmark01 – name or ID of a bookmark&lt;/P&gt;&lt;P&gt;Group – group name (Alternate State)&lt;/P&gt;&lt;P&gt;Sum({Book1} [Sales]) : sales of the selection of Book1&lt;/P&gt;&lt;P&gt;Sum({Group1} [Sales]) : sales of the Alternate State Group1 (the syntax is identical)&lt;/P&gt;&lt;P&gt;Sum({1} [Sales]) : sum of everything (All dimensions are completely reset to All)&lt;/P&gt;&lt;P&gt;Sum({$} [Sales]) : sum of the current selection (= sum([Sales])&lt;/P&gt;&lt;P&gt;Sum({1-$} [Sales]) : sum of the sales of the « database » except the current selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2015 07:42:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/856796#M1018226</guid>
      <dc:creator>amit_saini</dc:creator>
      <dc:date>2015-04-06T07:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/856797#M1018227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am sorry but actually&amp;nbsp; $-1 is not the "next forward" selection ... You will have to use an underscore _ to get the "next forward" selection ... like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $_1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum( { $-1&amp;lt;Product={Cap} } Sales)&lt;/STRONG&gt; - represent:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;The rows for the current selection excluding all rows that have the field Product equal to Cap.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2015 07:58:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/856797#M1018227</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-04-06T07:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/856798#M1018228</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;From what I understood is that:&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;sum({&amp;lt;Product-={Cap}&amp;gt;}Sales) ----&amp;gt; Returns the record of the current selection except the Product Cap.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum({&amp;lt;Product={Cap}&amp;gt;}Sales) ----&amp;gt; Returns the record of the current selection of the Product Cap.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum({$-1&amp;lt;Product={Cap}&amp;gt;}Sales) ----&amp;gt; Returns the record of the current selection of the Product Cap.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum({1&amp;lt;Product={Cap}&amp;gt;}Sales) -----&amp;gt; Returns the record of all&amp;nbsp; the data in the application for the Product Cap.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I had read somewhere that if the identifier is not specified it is assumed as $. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;How far have I got this right?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2015 08:00:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/856798#M1018228</guid>
      <dc:creator>siddheshmane</dc:creator>
      <dc:date>2015-04-06T08:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/856799#M1018229</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;If $ sign is not specified then it always considers as a current selections.&amp;nbsp; $ is not a mandatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2015 08:10:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/856799#M1018229</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-04-06T08:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/856800#M1018230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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; #&amp;nbsp; &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;Expression&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;Explanation&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt; 1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG style="font-family: 'courier new', courier; font-size: 13.3333330154419px;"&gt;Sum ( {&amp;lt;Product-={Cap}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;&lt;EM&gt;Sum of Sales for Cap product limited to the rows in the current selection &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;excluding&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;the product Cap. &lt;/EM&gt;Current selection ($) is implied since there is no "identifier" in the set&lt;/P&gt;&lt;P&gt;expression. Sum( { &lt;STRONG&gt;$&lt;/STRONG&gt;&amp;lt; Product -= {Cap} &amp;gt; }&amp;nbsp; Sales )&amp;nbsp; is equivalent to this&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt; 2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG style="font-family: 'courier new', courier; font-size: 13.3333330154419px;"&gt;Sum ( {&amp;lt;Product={Cap}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Sum of all Cap products in your current selection. $ (current selection) is implied here.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt; 3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;&lt;STRONG style="font-family: 'courier new', courier; font-size: 13.3333330154419px;"&gt;Sum ( {$-1&amp;lt;Product={Cap}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;Sum of Sales for all products in the current selection excluding the Cap products.&lt;/P&gt;&lt;P&gt;This will be a more efficient way of getting the same:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum ( {$-$&amp;lt;Product={Cap}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt; 4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG style="font-family: 'courier new', courier; font-size: 13.3333330154419px;"&gt;Sum ( {1&amp;lt;Product={Cap}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;&lt;EM&gt;Sum of Sales for all Cap products. 1 is the identifier for "all rows" - but it will still &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;group them by the dimensions in your chart.&lt;/EM&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;#1 and #3 should give the same result - although #3 is more efficient - or could be&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;#2 and #4 are different since #2 is only Sales considering the current selection and #4 is Sales of everything. In the case that you have not selected anything or selected everything #1 and #4 will give the same result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2015 08:21:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/856800#M1018230</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-04-06T08:21:36Z</dc:date>
    </item>
  </channel>
</rss>

