<?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: Conditional Average in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-Average/m-p/489867#M183068</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any help please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jan 2014 17:29:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-09T17:29:49Z</dc:date>
    <item>
      <title>Conditional Average</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Average/m-p/489865#M183066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Every one,&lt;/P&gt;&lt;P&gt;Happy New Year!!&lt;/P&gt;&lt;P&gt;1. I have&amp;nbsp; business like Rates, Credits, Commodities.&lt;/P&gt;&lt;P&gt;2. Always one client Selected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get average of sales value for each business for all clients, I was able to get this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the problem is I wont get average of all clients for each business meets the threshold.&amp;nbsp; I tried formula&lt;/P&gt;&lt;P&gt;but did not work, still gives me total average only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My chart has one dimension that is Business&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is My formula to get average&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;Year={$(=MAX(Year))},&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID={"=((Sum({&amp;lt;Year={$(=MAX(Year))},ID=&amp;gt;}Sales)/1000 )&amp;gt;=$(=only(ThresholdValue)))"}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;Year={$(=MAX(Year))},&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID={"=((Sum({&amp;lt;Year={$(=MAX(Year))},ID=&amp;gt;}Sales)/1000 )&amp;gt;=$(=only(ThresholdValue)))"}&amp;gt;} Distinct ID) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in above formula&lt;/P&gt;&lt;P&gt;1. &lt;SPAN style="color: #0000ff;"&gt;ID={"=((Sum({&amp;lt;Year={$(=MAX(Year))},ID=&amp;gt;}Sales)/1000 )&amp;gt;=$(=only(ThresholdValue)))"}&lt;/SPAN&gt; will give me all ID whose value greater then threshold, &lt;SPAN style="color: #ff0000;"&gt;(indirect set)&lt;/SPAN&gt;but it is not working.&lt;/P&gt;&lt;P&gt;2. ThresholdValue is the drop down select&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure what am i missing here. Above expression still gives me all clients ave for each business rather then threshold limit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;Dev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 15:35:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Average/m-p/489865#M183066</guid>
      <dc:creator />
      <dc:date>2014-01-09T15:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Average</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Average/m-p/489866#M183067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem with this is it is not considering the Dimension in expression, I believe in Indirect set analysis. If I select My dimension then it gives correct result. Some how force the dimension into indirect set analysis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 16:27:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Average/m-p/489866#M183067</guid>
      <dc:creator />
      <dc:date>2014-01-09T16:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Average</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Average/m-p/489867#M183068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any help please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 17:29:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Average/m-p/489867#M183068</guid>
      <dc:creator />
      <dc:date>2014-01-09T17:29:49Z</dc:date>
    </item>
  </channel>
</rss>

