<?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 Calculate a Ratio in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-a-Ratio/m-p/221999#M74748</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Folks,&lt;/P&gt;&lt;P&gt;I'm trying to work out a service level which is a straightforward calulation of Desired / Delivered. I have a dimension of customer_No.&lt;/P&gt;&lt;P&gt;I now need to exclude some customers who are no longer serviced and I introduced the follwing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;sum({&amp;lt;[CUSTOMER_NO] -= {80148}&amp;gt;}((DELIVERED)/(DESIRED)))&lt;/P&gt;&lt;P&gt;Whilst this works fine and excludes the calculation for the customer in question, all other customers %service level is wrong.i.e 4000%&lt;/P&gt;&lt;P&gt;Any thoughts how I can get round this, using aagr on the customer no dimension does not appear to work either.&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Apr 2011 13:10:16 GMT</pubDate>
    <dc:creator>darrellbutler</dc:creator>
    <dc:date>2011-04-19T13:10:16Z</dc:date>
    <item>
      <title>Calculate a Ratio</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-a-Ratio/m-p/221999#M74748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Folks,&lt;/P&gt;&lt;P&gt;I'm trying to work out a service level which is a straightforward calulation of Desired / Delivered. I have a dimension of customer_No.&lt;/P&gt;&lt;P&gt;I now need to exclude some customers who are no longer serviced and I introduced the follwing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;sum({&amp;lt;[CUSTOMER_NO] -= {80148}&amp;gt;}((DELIVERED)/(DESIRED)))&lt;/P&gt;&lt;P&gt;Whilst this works fine and excludes the calculation for the customer in question, all other customers %service level is wrong.i.e 4000%&lt;/P&gt;&lt;P&gt;Any thoughts how I can get round this, using aagr on the customer no dimension does not appear to work either.&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 13:10:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-a-Ratio/m-p/221999#M74748</guid>
      <dc:creator>darrellbutler</dc:creator>
      <dc:date>2011-04-19T13:10:16Z</dc:date>
    </item>
    <item>
      <title>Calculate a Ratio</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-a-Ratio/m-p/222000#M74749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;maybe this is better:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;sum({$&amp;lt;[CUSTOMER_NO] -= {80148}&amp;gt;} DELIVERED) / sum({$&amp;lt;[CUSTOMER_NO] -= {80148}&amp;gt;} DESIRED)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;- Ralf&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 13:33:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-a-Ratio/m-p/222000#M74749</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2011-04-19T13:33:31Z</dc:date>
    </item>
    <item>
      <title>Calculate a Ratio</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-a-Ratio/m-p/222001#M74750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Ralf, when I do this all service levels default to 100% - wopuld be nice but infortunately not accurate !&lt;/P&gt;&lt;P&gt;Any further ideas, many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 13:52:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-a-Ratio/m-p/222001#M74750</guid>
      <dc:creator>darrellbutler</dc:creator>
      <dc:date>2011-04-19T13:52:03Z</dc:date>
    </item>
    <item>
      <title>Calculate a Ratio</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-a-Ratio/m-p/222002#M74751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I mean, 100% is much more realistic than 400% &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can you post an example app?&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 13:57:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-a-Ratio/m-p/222002#M74751</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2011-04-19T13:57:14Z</dc:date>
    </item>
    <item>
      <title>Calculate a Ratio</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-a-Ratio/m-p/222003#M74752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very Good Ralf - I'll try that one next time I'm speaking with our accountants !&lt;IMG alt="Big Smile" src="http://community.qlik.com/emoticons/emotion-2.gif" /&gt;&lt;/P&gt;&lt;P&gt;I've got round this now by splitting my set analysis into two separate expressions then just dividing one into the other using the the column() command. Does the trick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Darrell.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 14:06:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-a-Ratio/m-p/222003#M74752</guid>
      <dc:creator>darrellbutler</dc:creator>
      <dc:date>2011-04-19T14:06:09Z</dc:date>
    </item>
  </channel>
</rss>

