<?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 - removing a selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-removing-a-selection/m-p/351984#M130573</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try with this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;= avg (&lt;/P&gt;&lt;P&gt;{&amp;lt;Site = &amp;gt;}&lt;/P&gt;&lt;P&gt;(total&amp;lt;[Metric KPI],Score&amp;gt; aggr (&lt;/P&gt;&lt;P&gt;avg({&amp;lt;Site = &amp;gt;} total&amp;lt; [Metric KPI], Tab &amp;gt; Value * [Element weight]))&lt;/P&gt;&lt;P&gt;,[Metric KPI],Tab,Score))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try adding the exclusion to the Avg functions inside the aggr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Mar 2012 13:50:26 GMT</pubDate>
    <dc:creator>CELAMBARASAN</dc:creator>
    <dc:date>2012-03-14T13:50:26Z</dc:date>
    <item>
      <title>Set Analysis - removing a selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-removing-a-selection/m-p/351983#M130572</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;With the assistance of SWeuhl, I have the following formula in my QV doc, which is working well:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= avg ( &lt;/P&gt;&lt;P&gt;(total&amp;lt;[Metric KPI],Score&amp;gt; aggr ( &lt;/P&gt;&lt;P&gt;avg( total&amp;lt; [Metric KPI], Tab &amp;gt; Value * [Element weight]))&lt;/P&gt;&lt;P&gt;,[Metric KPI],Tab,Score))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to not consider any selections made within the "Site" field....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reviewing other examples on the forum, theoretically, all I need to do, is include a "Set Analysis" expression, removing the site selection - ie " {&amp;lt;Site = &amp;gt;} "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore, I thought the following syntax should work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= avg ( &lt;/P&gt;&lt;P&gt;{&amp;lt;Site = &amp;gt;}&lt;/P&gt;&lt;P&gt;(total&amp;lt;[Metric KPI],Score&amp;gt; aggr ( &lt;/P&gt;&lt;P&gt;avg( total&amp;lt; [Metric KPI], Tab &amp;gt; Value * [Element weight]))&lt;/P&gt;&lt;P&gt;,[Metric KPI],Tab,Score))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although am not getting the desired results (ie it does not take into account no site selection)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any thoughts on the matter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 13:24:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-removing-a-selection/m-p/351983#M130572</guid>
      <dc:creator />
      <dc:date>2012-03-14T13:24:26Z</dc:date>
    </item>
    <item>
      <title>Set Analysis - removing a selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-removing-a-selection/m-p/351984#M130573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try with this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;= avg (&lt;/P&gt;&lt;P&gt;{&amp;lt;Site = &amp;gt;}&lt;/P&gt;&lt;P&gt;(total&amp;lt;[Metric KPI],Score&amp;gt; aggr (&lt;/P&gt;&lt;P&gt;avg({&amp;lt;Site = &amp;gt;} total&amp;lt; [Metric KPI], Tab &amp;gt; Value * [Element weight]))&lt;/P&gt;&lt;P&gt;,[Metric KPI],Tab,Score))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try adding the exclusion to the Avg functions inside the aggr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 13:50:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-removing-a-selection/m-p/351984#M130573</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-03-14T13:50:26Z</dc:date>
    </item>
    <item>
      <title>Set Analysis - removing a selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-removing-a-selection/m-p/351985#M130574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks Celambarasn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I initially tried this approach, which as you correctly state should work (and does in the sample QV file that I created), but my main system, I only see a blank row...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Must be some sort of display condition that I have created...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will continue investigating in a different area...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 14:49:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-removing-a-selection/m-p/351985#M130574</guid>
      <dc:creator />
      <dc:date>2012-03-14T14:49:42Z</dc:date>
    </item>
    <item>
      <title>Set Analysis - removing a selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-removing-a-selection/m-p/351986#M130575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a conditional statement so that it only returns a value, when the result of the formula matches the "Score" field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like its this part of my syntax that is causing my table not to display the data that it should.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With no site selection made, the data appears correct - but as soon as a site has been selected, then no data is being returned (once included within my IF statement).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my current syntax is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ( formula = Score, formula, 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---------------------------------------------------------&lt;/P&gt;&lt;P&gt;where formula = &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg (&lt;/P&gt;&lt;P&gt;{&amp;lt;Site = &amp;gt;}&lt;/P&gt;&lt;P&gt;(total&amp;lt;[Metric KPI],Score&amp;gt; aggr (&lt;/P&gt;&lt;P&gt;avg({&amp;lt;Site = &amp;gt;} total&amp;lt; [Metric KPI], Tab &amp;gt; Value * [Element weight]))&lt;/P&gt;&lt;P&gt;,[Metric KPI],Tab,Score))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and Score = the "Score" result in the data&lt;/P&gt;&lt;P&gt;---------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which creates the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(&lt;/P&gt;&lt;P&gt;avg (&lt;/P&gt;&lt;P&gt;{&amp;lt;Site = &amp;gt;}&lt;/P&gt;&lt;P&gt;(total&amp;lt;[Metric KPI],Score&amp;gt; aggr (&lt;/P&gt;&lt;P&gt;avg({&amp;lt;Site = &amp;gt;} total&amp;lt; [Metric KPI], Tab &amp;gt; Value * [Element weight]))&lt;/P&gt;&lt;P&gt;,[Metric KPI],Tab,Score))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Score,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg (&lt;/P&gt;&lt;P&gt;{&amp;lt;Site = &amp;gt;}&lt;/P&gt;&lt;P&gt;(total&amp;lt;[Metric KPI],Score&amp;gt; aggr (&lt;/P&gt;&lt;P&gt;avg({&amp;lt;Site = &amp;gt;} total&amp;lt; [Metric KPI], Tab &amp;gt; Value * [Element weight]))&lt;/P&gt;&lt;P&gt;,[Metric KPI],Tab,Score))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone with any thoughts, greatly appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 15:44:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-removing-a-selection/m-p/351986#M130575</guid>
      <dc:creator />
      <dc:date>2012-03-14T15:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - removing a selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-removing-a-selection/m-p/351987#M130576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QV file for the above...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 15:45:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-removing-a-selection/m-p/351987#M130576</guid>
      <dc:creator />
      <dc:date>2012-03-14T15:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - removing a selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-removing-a-selection/m-p/351988#M130577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; does anyone have some time to review this issue for me please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie initial calculating formulas works, before its included within an "IF" statement...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas / tips greatly appreciated...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 11:04:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-removing-a-selection/m-p/351988#M130577</guid>
      <dc:creator />
      <dc:date>2012-03-15T11:04:42Z</dc:date>
    </item>
  </channel>
</rss>

