<?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: Default in Set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Default-in-Set-analysis/m-p/788347#M278774</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tresesco for quik help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried it and it worked. I would like to understand its behaviour though.&lt;/P&gt;&lt;P&gt; so when we open the dashboard it takes max year displayes results.&lt;/P&gt;&lt;P&gt;when we select any other year in the list box, is that replacing the max year by the field value selected?&lt;/P&gt;&lt;P&gt;does that mean that qlikview is not checking the expression as is ? if it checks as is, it has to always give the max year as the year available in my entire dataset but it doesnt do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help me with this understanding&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;KS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Mar 2015 08:59:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-03-12T08:59:50Z</dc:date>
    <item>
      <title>Default in Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Default-in-Set-analysis/m-p/788343#M278770</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;I have a Requirement to create a report&lt;/P&gt;&lt;P&gt;- which will have defaulted to max year on opening the document&lt;/P&gt;&lt;P&gt;( Achieved it using triggers on open)&lt;/P&gt;&lt;P&gt;- A report which compares current year to previous year comparision of counts&lt;/P&gt;&lt;P&gt;( Achieved it using set analysis for Current year as - =Sum({Year={$(=GetFieldSelections(Year))}&amp;gt;} issuecount)&lt;/P&gt;&lt;P&gt;and year ago counts using =Sum({Year={$(=GetFieldSelections(Year)-1)}&amp;gt;} issuecount)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;But when we clear the selections the chart dispalys nothing.&lt;/P&gt;&lt;P&gt;my requirement here is to default the graph to max year when all the selections are cleared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can you help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;KS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 08:41:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Default-in-Set-analysis/m-p/788343#M278770</guid>
      <dc:creator />
      <dc:date>2015-03-12T08:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Default in Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Default-in-Set-analysis/m-p/788344#M278771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Year={$(=&lt;STRONG&gt;Max&lt;/STRONG&gt;(Year))}&amp;gt;} issuecount)&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Year={$(=&lt;STRONG&gt;Max&lt;/STRONG&gt;(Year)-1)}&amp;gt;} issuecount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 08:45:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Default-in-Set-analysis/m-p/788344#M278771</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-03-12T08:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: Default in Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Default-in-Set-analysis/m-p/788345#M278772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({Year={$(=max(Year))}&amp;gt;} issuecount)&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;"&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;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({Year={$(=max(Year)-1)}&amp;gt;} issuecount)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 08:47:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Default-in-Set-analysis/m-p/788345#M278772</guid>
      <dc:creator>simenkg</dc:creator>
      <dc:date>2015-03-12T08:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Default in Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Default-in-Set-analysis/m-p/788346#M278773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try with&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Year&lt;/SPAN&gt;={$(=max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Year&lt;/SPAN&gt;))}&amp;gt;} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;issuecount&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 08:48:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Default-in-Set-analysis/m-p/788346#M278773</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-03-12T08:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Default in Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Default-in-Set-analysis/m-p/788347#M278774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tresesco for quik help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried it and it worked. I would like to understand its behaviour though.&lt;/P&gt;&lt;P&gt; so when we open the dashboard it takes max year displayes results.&lt;/P&gt;&lt;P&gt;when we select any other year in the list box, is that replacing the max year by the field value selected?&lt;/P&gt;&lt;P&gt;does that mean that qlikview is not checking the expression as is ? if it checks as is, it has to always give the max year as the year available in my entire dataset but it doesnt do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help me with this understanding&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;KS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 08:59:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Default-in-Set-analysis/m-p/788347#M278774</guid>
      <dc:creator />
      <dc:date>2015-03-12T08:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Default in Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Default-in-Set-analysis/m-p/788348#M278775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When no selections are made then all possible values for Year are in the "Year Array".&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Selecting a Year/Years will reduce the "Year Array" to those selected values. Selecting another field could also reduce the array because of the associative model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Max(Year) function will return the biggest numeric value in the "Year Array".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want the function to give you the biggest numeric value in the "Year" field regardless of selections then the expressions becomes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max({1} Year). The {1} tells QlikView to disregard user selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in expression:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Year={$(=Max({1} Year))}&amp;gt; issuecount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 09:10:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Default-in-Set-analysis/m-p/788348#M278775</guid>
      <dc:creator>simenkg</dc:creator>
      <dc:date>2015-03-12T09:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Default in Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Default-in-Set-analysis/m-p/788349#M278776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swapnil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When ever you select a year QV consider that Year and fetch data corresponding to that year and Year-1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you take year as dimension then you can see it will display data for only Max Year and max Year-1 and other years will have 0 corresponding to that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 09:10:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Default-in-Set-analysis/m-p/788349#M278776</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2015-03-12T09:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Default in Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Default-in-Set-analysis/m-p/788350#M278777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Max(Year) - returns the &lt;EM&gt;max of year out of the years that are &lt;/EM&gt;&lt;STRONG&gt;&lt;EM&gt;in the scope. &lt;/EM&gt;&lt;/STRONG&gt;Now 'in the scope' means -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - all the years when no year is selected&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - a particular one or multiple years which are selected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it is actually checking the expression. You have to just understand the 'in the scope' concept. Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 09:11:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Default-in-Set-analysis/m-p/788350#M278777</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-03-12T09:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Default in Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Default-in-Set-analysis/m-p/788351#M278778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent. Thanks for the detailed explanation Simen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 09:16:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Default-in-Set-analysis/m-p/788351#M278778</guid>
      <dc:creator />
      <dc:date>2015-03-12T09:16:58Z</dc:date>
    </item>
  </channel>
</rss>

