<?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 help requested in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-help-requested/m-p/479569#M480123</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad it was helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set Analysis can be very complicated or it can be easy once you get past the strange syntax. Let's say you want to see sales figures just for 2013 regardless of what year the end user may have selected you would do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: blue; font-size: 9pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: maroon; font-size: 9pt;"&gt;START_Y&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;={2013}&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;&amp;gt;}Sales&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;BR /&gt; &lt;/P&gt;&lt;P&gt;The $ on the far left indicates that existing filters should be used, except where you override them. Instead of the $ you can alternatively use a 1 which says "In this case don't trust anything that the users may have clicked and ignore all filters like Region, Sales person etc and produces the total of all sales for 2013&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: blue; font-size: 9pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;({1&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: maroon; font-size: 9pt;"&gt;START_Y&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;={2013}&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;&amp;gt;}Sales&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;You can also use multiple fields if you want all Sales for just the SOUTH region. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: blue; font-size: 9pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;({1&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: maroon; font-size: 9pt;"&gt;START_Y&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;={2013}, Region = {'SOUTH'}&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;&amp;gt;}Sales&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Arial','sans-serif';"&gt;You can also specify to ignore a particular filter without setting the value. So lets say you want to honor settings for product and sales person, but you only want 2013 data and you have to see it for all regions. You can use the expression below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Arial','sans-serif';"&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: blue; font-size: 9pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;({$&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: maroon; font-size: 9pt;"&gt;START_Y&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;={2013}, Region = &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;&amp;gt;}Sales&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Arial','sans-serif';"&gt;Start slow using things like this and then you can really enhance SET ANALYSIS by utilizing more complicated expressions. Assume you used the above and it worked great for all 365 days this year, but what would happen on January 1, 2014? It would continue to show the sales for 2013 even though your label might have said "Current YTD Sales". You can utilize an expression to get the YEAR for whatever is returned by the TODAY function. So it would work for 2013 and would immediately rollover to 2014 on January 1. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Arial','sans-serif';"&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: blue; font-size: 9pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: maroon; font-size: 9pt;"&gt;START_Y&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9pt; font-family: 'Arial','sans-serif';"&gt;$(=Year(Today()))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;}&amp;gt;}Sales)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Arial','sans-serif';"&gt;Syntax starts getting harder to read but when that happens just back off and isolate the elements and try 1 change at a time and come back to your simple expressions and work up. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Dec 2013 21:17:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-12-12T21:17:55Z</dc:date>
    <item>
      <title>Set analysis help requested</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-help-requested/m-p/479563#M480117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the expression below in a bar chart.&amp;nbsp; "Pastdue" and "Update Interval" are both numerical values calculated in the load script.&amp;nbsp; I am trying to count instances where the Pastdue value is greater than the Update Interval value.&amp;nbsp; However, I have verified that it is only counting the "Defect ID" and ignoring the "greater than" condition altogether.&amp;nbsp; I am fairly new to set analysis so it is quite possible there is something I am overlooking with my syntax.&amp;nbsp; Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;count({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Pastdue]&lt;/SPAN&gt;={&lt;SPAN style="color: #800000;"&gt;"&amp;gt;"&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080;"&gt;$(Update Interval)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;[Defect ID]&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;-Nate&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 19:29:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-help-requested/m-p/479563#M480117</guid>
      <dc:creator>dukane24</dc:creator>
      <dc:date>2013-12-12T19:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis help requested</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-help-requested/m-p/479564#M480118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;count({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Pastdue]&lt;/SPAN&gt;={'&lt;SPAN style="color: #800000;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;STRONG style="color: #808080;"&gt;&lt;EM&gt;&lt;STRONG style="color: #808080;"&gt;&lt;EM&gt;$(UpdateInterval)'&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;[Defect ID]&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;**EDIT:&amp;nbsp; This will only work if UpdateInterval is a variable.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 19:31:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-help-requested/m-p/479564#M480118</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2013-12-12T19:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis help requested</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-help-requested/m-p/479565#M480119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, it seems like what you're asking for isn't going to work with what I posted either.&amp;nbsp; Can you post a sample .qvw?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1290"&gt;Preparing examples for Upload - Reduction and Data Scrambling&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 19:35:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-help-requested/m-p/479565#M480119</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2013-12-12T19:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis help requested</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-help-requested/m-p/479566#M480120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can use a simple IF statement instead of Set Analysis for what you are trying to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM( IF (PastDue &amp;gt; [Update Interval], 1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Quite simply for every row where PastDue is great than [Update Interval] the system will use the value 1 and them sum them up. If you have a scenario where you only want to count the distinct Defect ID's then you can modify the command slightly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COUNT(DISTINCT IF(PastDue &amp;gt; [Update Interval], [Defect ID])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that case it outputs the value Defect ID and then it determines how many of the values you output were unique.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set Analsysis is only needed where have more complicated scenarios like you want to ignore certain filter selections a user has made or force it to use other filters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 19:37:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-help-requested/m-p/479566#M480120</guid>
      <dc:creator />
      <dc:date>2013-12-12T19:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis help requested</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-help-requested/m-p/479567#M480121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you can try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;count({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[Pastdue]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;"&amp;gt;&lt;/SPAN&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit; color: #808080;"&gt;$(Update Interval)"&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;}&amp;gt;} DISTINCT &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[Defect ID]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&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;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; 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="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;IF(&lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Pastdue]&lt;/SPAN&gt;&amp;gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit; color: #808080;"&gt;$(Update Interval)&lt;/EM&gt;&lt;/STRONG&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;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;count(DISTINCT &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[Defect ID]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;)&lt;/SPAN&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;"&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but is better &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; 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="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;COUNT(DISTINCT IF([PastDue] &amp;gt; [Update Interval], [Defect ID]) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as Dalton Said.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 19:48:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-help-requested/m-p/479567#M480121</guid>
      <dc:creator />
      <dc:date>2013-12-12T19:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis help requested</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-help-requested/m-p/479568#M480122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dalton! This worked.&amp;nbsp; I am new to Qlikview and to set analysis.&amp;nbsp; I was just thinking for charts in Qlikview, set analysis is what needed to be used as that is all I have found when searching for answers to my Qlikeivew questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do have a couple conditions I need to throw in to exclude results for some fields but I was able to tack on some ANDs in my IF statment and it worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This problem has been pestering me for a while now so your help is much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Nate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 20:24:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-help-requested/m-p/479568#M480122</guid>
      <dc:creator>dukane24</dc:creator>
      <dc:date>2013-12-12T20:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis help requested</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-help-requested/m-p/479569#M480123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad it was helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set Analysis can be very complicated or it can be easy once you get past the strange syntax. Let's say you want to see sales figures just for 2013 regardless of what year the end user may have selected you would do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: blue; font-size: 9pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: maroon; font-size: 9pt;"&gt;START_Y&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;={2013}&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;&amp;gt;}Sales&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;BR /&gt; &lt;/P&gt;&lt;P&gt;The $ on the far left indicates that existing filters should be used, except where you override them. Instead of the $ you can alternatively use a 1 which says "In this case don't trust anything that the users may have clicked and ignore all filters like Region, Sales person etc and produces the total of all sales for 2013&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: blue; font-size: 9pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;({1&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: maroon; font-size: 9pt;"&gt;START_Y&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;={2013}&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;&amp;gt;}Sales&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;You can also use multiple fields if you want all Sales for just the SOUTH region. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: blue; font-size: 9pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;({1&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: maroon; font-size: 9pt;"&gt;START_Y&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;={2013}, Region = {'SOUTH'}&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;&amp;gt;}Sales&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Arial','sans-serif';"&gt;You can also specify to ignore a particular filter without setting the value. So lets say you want to honor settings for product and sales person, but you only want 2013 data and you have to see it for all regions. You can use the expression below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Arial','sans-serif';"&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: blue; font-size: 9pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;({$&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: maroon; font-size: 9pt;"&gt;START_Y&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;={2013}, Region = &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;&amp;gt;}Sales&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Arial','sans-serif';"&gt;Start slow using things like this and then you can really enhance SET ANALYSIS by utilizing more complicated expressions. Assume you used the above and it worked great for all 365 days this year, but what would happen on January 1, 2014? It would continue to show the sales for 2013 even though your label might have said "Current YTD Sales". You can utilize an expression to get the YEAR for whatever is returned by the TODAY function. So it would work for 2013 and would immediately rollover to 2014 on January 1. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Arial','sans-serif';"&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: blue; font-size: 9pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: maroon; font-size: 9pt;"&gt;START_Y&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9pt; font-family: 'Arial','sans-serif';"&gt;$(=Year(Today()))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;}&amp;gt;}Sales)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Arial','sans-serif';"&gt;Syntax starts getting harder to read but when that happens just back off and isolate the elements and try 1 change at a time and come back to your simple expressions and work up. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 21:17:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-help-requested/m-p/479569#M480123</guid>
      <dc:creator />
      <dc:date>2013-12-12T21:17:55Z</dc:date>
    </item>
  </channel>
</rss>

