<?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 analytics - calculate a rate, problem with filtering in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analytics-calculate-a-rate-problem-with-filtering/m-p/1215241#M461764</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;Name = {"=Sum(Objective) &amp;gt; 0"}&amp;gt;}&lt;SPAN style="font-size: 13.3333px;"&gt;Amount&lt;/SPAN&gt;)/Sum(&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Objective)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Dec 2016 17:34:45 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-12-06T17:34:45Z</dc:date>
    <item>
      <title>Set analytics - calculate a rate, problem with filtering</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analytics-calculate-a-rate-problem-with-filtering/m-p/1215240#M461763</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;Below my data set:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="519.4" style="width: 232.4px; height: 386.4px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl72" height="18" width="52"&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Name&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl73" style="border-left: none;" width="66"&gt;&lt;STRONG style="color: #0000ff;"&gt;Amount&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl74" style="border-left: none;" width="74"&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Objective&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl75" height="18" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl76" style="border-top: none;"&gt;60&lt;/TD&gt;&lt;TD align="right" class="xl77" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="18" style="border-top: none;"&gt;Player1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="18" style="border-top: none;"&gt;Player2&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl80" height="18" style="border-top: none;"&gt;&lt;STRONG&gt;Player3&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right" class="xl81" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;10&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right" class="xl82" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;10&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl80" height="18" style="border-top: none;"&gt;&lt;STRONG&gt;Player4&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right" class="xl81" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;10&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right" class="xl82" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;10&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="18" style="border-top: none;"&gt;Player5&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="18" style="border-top: none;"&gt;Player6&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to calculate in a text object "SUM(Amount) over SUM(Objective)" to show a global achievment rate.&lt;/P&gt;&lt;P&gt;But I want to calculate this only for players who have an objective, in my example: only player 3 and player 4 must be used =&amp;gt; 20 /20 =&amp;gt; 100%&lt;/P&gt;&lt;P&gt;I don't manage to get the good result with these expressions:&lt;/P&gt;&lt;P&gt;- sum({&amp;lt;Objective={'&amp;gt;0'}&amp;gt;Amount)/Sum(Objective) &lt;/P&gt;&lt;P&gt;- If(Objective&amp;gt;0,&lt;SPAN style="font-size: 13.3333px;"&gt;sum(Amount)/Sum(Objective))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either it gives me: 60/20 =&amp;gt; 300% (by summing all players), or it gives me 0%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any suggestions ?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 16:45:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analytics-calculate-a-rate-problem-with-filtering/m-p/1215240#M461763</guid>
      <dc:creator />
      <dc:date>2016-12-06T16:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Set analytics - calculate a rate, problem with filtering</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analytics-calculate-a-rate-problem-with-filtering/m-p/1215241#M461764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;Name = {"=Sum(Objective) &amp;gt; 0"}&amp;gt;}&lt;SPAN style="font-size: 13.3333px;"&gt;Amount&lt;/SPAN&gt;)/Sum(&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Objective)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 17:34:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analytics-calculate-a-rate-problem-with-filtering/m-p/1215241#M461764</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-06T17:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set analytics - calculate a rate, problem with filtering</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analytics-calculate-a-rate-problem-with-filtering/m-p/1215242#M461765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;sum({$ &amp;lt;Name=P({$ &amp;lt;Name={"=sum(Objective)&amp;gt;0"}&amp;gt;} Name)&amp;gt;} Amount) &lt;/P&gt;&lt;P&gt;&amp;amp; chr(10) &amp;amp; &lt;/P&gt;&lt;P&gt;sum(Objective)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 17:35:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analytics-calculate-a-rate-problem-with-filtering/m-p/1215242#M461765</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-12-06T17:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set analytics - calculate a rate, problem with filtering</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analytics-calculate-a-rate-problem-with-filtering/m-p/1215243#M461766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/people/maxgro"&gt;maxgro&lt;/A&gt;‌ - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a difference between these two?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;{&amp;lt;Name = {"=Sum(Objective) &amp;gt; 0"}&amp;gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vs&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; font-size: 13px;"&gt;&lt;STRONG&gt;{$ &amp;lt;Name=P({$ &amp;lt;Name={"=sum(Objective)&amp;gt;0"}&amp;gt;} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Name)&amp;gt;}&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Under any circumstances, will the above two set expression give different outputs?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 17:45:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analytics-calculate-a-rate-problem-with-filtering/m-p/1215243#M461766</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-06T17:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set analytics - calculate a rate, problem with filtering</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analytics-calculate-a-rate-problem-with-filtering/m-p/1215244#M461767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't think&lt;/P&gt;&lt;P&gt;And as your is most simple, your is even better&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 17:55:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analytics-calculate-a-rate-problem-with-filtering/m-p/1215244#M461767</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-12-06T17:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Set analytics - calculate a rate, problem with filtering</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analytics-calculate-a-rate-problem-with-filtering/m-p/1215245#M461768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If they always work the same way, then yes I would think the smaller is better... but I wonder if there is any difference&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 18:05:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analytics-calculate-a-rate-problem-with-filtering/m-p/1215245#M461768</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-06T18:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set analytics - calculate a rate, problem with filtering</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analytics-calculate-a-rate-problem-with-filtering/m-p/1215246#M461769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny and Massimo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works great with the most simple, I haven't tried with the other one.&lt;/P&gt;&lt;P&gt;I didn't know we can mix dimension and fact when we filter in a set analysis... really useful !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 08:33:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analytics-calculate-a-rate-problem-with-filtering/m-p/1215246#M461769</guid>
      <dc:creator />
      <dc:date>2016-12-07T08:33:14Z</dc:date>
    </item>
  </channel>
</rss>

