<?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 inheritance in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-inheritance/m-p/354107#M131400</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm writing a couple of variable to calculate KPI's and min/avg/max values of thoose KPI's. The min/avg/max should be calculated ignoring certain selections in the qvw. The problem is that the written functions can get very long. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KPI = count(value)*(max(date)-min(date))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I need to remove the filters to calculate min/avg/max then I need to use something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KPI_avg = avg({$&amp;lt;removeValue=&amp;gt;}count({$&amp;lt;removeValue=&amp;gt;}value)*(max({$&amp;lt;removeValue=&amp;gt;}date)-min({$&amp;lt;removeValue=&amp;gt;}date)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a longer function for my KPI and an even longer selection I need to ignore.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my question is: can I let the set analysis be inherited by defining my 'ignore selection' only once? for ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KPI_avg_wanted = avg({$&amp;lt;removeValue=&amp;gt;}count(value)*(max(date)-min(date)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried something similar to the above but that doesn't work. Anyone got suggestions? thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Mar 2012 09:52:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-03-15T09:52:16Z</dc:date>
    <item>
      <title>Set analysis inheritance</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-inheritance/m-p/354107#M131400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm writing a couple of variable to calculate KPI's and min/avg/max values of thoose KPI's. The min/avg/max should be calculated ignoring certain selections in the qvw. The problem is that the written functions can get very long. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KPI = count(value)*(max(date)-min(date))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I need to remove the filters to calculate min/avg/max then I need to use something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KPI_avg = avg({$&amp;lt;removeValue=&amp;gt;}count({$&amp;lt;removeValue=&amp;gt;}value)*(max({$&amp;lt;removeValue=&amp;gt;}date)-min({$&amp;lt;removeValue=&amp;gt;}date)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a longer function for my KPI and an even longer selection I need to ignore.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my question is: can I let the set analysis be inherited by defining my 'ignore selection' only once? for ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KPI_avg_wanted = avg({$&amp;lt;removeValue=&amp;gt;}count(value)*(max(date)-min(date)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried something similar to the above but that doesn't work. Anyone got suggestions? thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 09:52:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-inheritance/m-p/354107#M131400</guid>
      <dc:creator />
      <dc:date>2012-03-15T09:52:16Z</dc:date>
    </item>
    <item>
      <title>Set analysis inheritance</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-inheritance/m-p/354108#M131401</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;You need to give set analysis expression for every individual method you use in the expression.&amp;nbsp; So, I don't think it is possible, you have to specify like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KPI_avg = avg({$&amp;lt;removeValue=&amp;gt;}count({$&amp;lt;removeValue=&amp;gt;}value)*(max({$&amp;lt;removeValue=&amp;gt;}date)-min({$&amp;lt;removeValue=&amp;gt;}date)))&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>Thu, 15 Mar 2012 10:12:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-inheritance/m-p/354108#M131401</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-03-15T10:12:12Z</dc:date>
    </item>
    <item>
      <title>Set analysis inheritance</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-inheritance/m-p/354109#M131402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, that's what I thought but I had hoped to be wrong &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 11:52:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-inheritance/m-p/354109#M131402</guid>
      <dc:creator />
      <dc:date>2012-03-15T11:52:43Z</dc:date>
    </item>
    <item>
      <title>Set analysis inheritance</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-inheritance/m-p/354110#M131403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;= avg({$&amp;lt;removeValue=&amp;gt;}count({$&amp;lt;removeValue=&amp;gt;}value)* max({$&amp;lt;removeValue=&amp;gt;}date)-min({$&amp;lt;removeValue=&amp;gt;}date)))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;shouldn't work at all, since you are embedding aggregation functions into another aggregation function. You need to use advanced aggregation to handle this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 13:32:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-inheritance/m-p/354110#M131403</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-03-15T13:32:56Z</dc:date>
    </item>
  </channel>
</rss>

