<?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 - outside of filter? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-outside-of-filter/m-p/852731#M471143</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&amp;nbsp; I've found pretty much exactly what you stated through some more creative googling.&amp;nbsp; I'm only a week into qlikview use and am amazed at the power of the set analysis features.&amp;nbsp; Syntax is a bit trick for me, but I'll get there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Apr 2015 17:58:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-03T17:58:41Z</dc:date>
    <item>
      <title>Set Analysis - outside of filter?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-outside-of-filter/m-p/852728#M471140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I'm summing sales of a unit and comparing it to their prior year's sales.&amp;nbsp; I'm doing this in a text paragraph all concatenated together, it's the sort of thing my users love.&amp;nbsp; Example &lt;SPAN style="color: #ff9900;"&gt;(Orange is calculated off fields)&lt;/SPAN&gt;: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="color: #ff9900;"&gt;Unit A&lt;/SPAN&gt; had sales of &lt;SPAN style="color: #ff9900;"&gt;$3,000&lt;/SPAN&gt; ytd for &lt;SPAN style="color: #ff9900;"&gt;1Q 2014&lt;/SPAN&gt;.&amp;nbsp; For the same period in &lt;SPAN style="color: #ff9900;"&gt;2013&lt;/SPAN&gt;, Unit A had sales of &lt;SPAN style="color: #ff9900;"&gt;$2,500&lt;/SPAN&gt;.&amp;nbsp; The percentage change from period to period was&lt;SPAN style="color: #ff9900;"&gt; 20%&lt;/SPAN&gt;."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've declared a vMaxYear, vPrevYear, vMaxQtr to derive from the filter.&lt;/P&gt;&lt;P&gt;Num(sum({$&amp;lt;year = {$(vMaxYear)}, qtr = {'&amp;lt;=$(=vQtrMax)'} &amp;gt; } [Sales]),$'#,##0 ')&amp;nbsp; = $3000&lt;/P&gt;&lt;P&gt;Num(sum({$&amp;lt;year = {$(vPrevYear)}, qtr = {'&amp;lt;=$(=vQtrMax)'} &amp;gt; } [Sales]),$'#,##0 ')&amp;nbsp; = $3000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is all predicated that my filters are simplistic.&amp;nbsp; I can only choose 1 Unit, and the paragraph will always show the maximum year. I want to add other text that takes into account data "outside" of the filter.&amp;nbsp; So in this case, I'm filtered to Unit A, but I want to compare Unit A's sales to that of Unit B, C, D, etc.&amp;nbsp; I'd like to say&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff9900;"&gt;Unit A's&lt;/SPAN&gt; sales of &lt;SPAN style="color: #ff9900;"&gt;$3,000&lt;/SPAN&gt; was &lt;SPAN style="color: #ff9900;"&gt;25%&lt;/SPAN&gt; of the total market which had reported sales of &lt;SPAN style="color: #ff9900;"&gt;$12,000&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to do a set analysis that looks outside of the filter parameters and takes into account the other Unit's?&amp;nbsp; That way I can calculate the 25% &amp;amp; the $12,000 in my example above?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 14:38:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-outside-of-filter/m-p/852728#M471140</guid>
      <dc:creator />
      <dc:date>2015-04-03T14:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - outside of filter?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-outside-of-filter/m-p/852729#M471141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This thread should help&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1334"&gt;Ignore all selections except some specific fields using Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 17:08:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-outside-of-filter/m-p/852729#M471141</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-04-03T17:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - outside of filter?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-outside-of-filter/m-p/852730#M471142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are numerous things you can do with set analysis. For instance, {1} will ignore any filters where as {&amp;lt;&lt;STRONG&gt;FieldName&lt;/STRONG&gt; = &amp;gt;} will ignore any selection in &lt;STRONG&gt;FieldName. F&lt;/STRONG&gt;urther {1&amp;lt;&lt;STRONG&gt;FieldName&lt;/STRONG&gt; = p(&lt;STRONG&gt;FieldName&lt;/STRONG&gt;)&amp;gt;} would ignore all selections except the one made for &lt;STRONG&gt;FieldName. &lt;/STRONG&gt;and then there are more sophisticated set analysis you can employ based on your need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will find a good guide on set analysis here: &lt;A href="https://community.qlik.com/docs/DOC-4951"&gt;Set Analysis: syntaxes, examples&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 17:14:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-outside-of-filter/m-p/852730#M471142</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-03T17:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - outside of filter?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-outside-of-filter/m-p/852731#M471143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&amp;nbsp; I've found pretty much exactly what you stated through some more creative googling.&amp;nbsp; I'm only a week into qlikview use and am amazed at the power of the set analysis features.&amp;nbsp; Syntax is a bit trick for me, but I'll get there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 17:58:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-outside-of-filter/m-p/852731#M471143</guid>
      <dc:creator />
      <dc:date>2015-04-03T17:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - outside of filter?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-outside-of-filter/m-p/852732#M471144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am sure you will. We were all new one day and had to go through the difficult time of learning the basics. Not to say that some time in, I amazed by the kind of things we can do with set analysis. Do look at the document available at the link I shared. It is the most comprehensive guide for learning set analysis I have came across.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 18:06:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-outside-of-filter/m-p/852732#M471144</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-03T18:06:11Z</dc:date>
    </item>
  </channel>
</rss>

