<?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 Dividing two sums in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dividing-two-sums/m-p/241302#M91734</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;S,&lt;BR /&gt;Nothing's wrong about the expression itself. Given the set conditions are the same, it is sum([Total_proceeds])/sum(Market_Value). It returns a mesure in %. Now, what is your definition of this expression total? It depends on your object properties. Is it sum of rows, or avg of rows, or expression total, or anything else? I assume you only need to use the correct total mode - which I cannot guess for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Oct 2010 13:35:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-10-19T13:35:41Z</dc:date>
    <item>
      <title>Dividing two sums</title>
      <link>https://community.qlik.com/t5/QlikView/Dividing-two-sums/m-p/241301#M91733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class="ForumPostBody"&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to sum a series of numbers and divide the total by the total sum of a different series of numbers. The expression I'm using is giving me an incorrect total.&lt;/P&gt;&lt;P&gt;The expression I'm using is as below:&lt;/P&gt;&lt;P&gt;*************************************************************************************************************************************************&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Registration_Code = {'2'}, Vehicle_Status = {'Normal'}, Contract_Prefix = {'A'}, Salvage_Processed = {'1'}, YMDate = DisplayYM} [Total_proceeds])&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;Sum&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Registration_Code = {'2'}, Vehicle_Status = {'Normal'}, Contract_Prefix = {'A'}, Salvage_Processed = {'1'}, YMDate = DisplayYM} Market_Value)&lt;/P&gt;&lt;P&gt;*************************************************************************************************************************************************&lt;/P&gt;&lt;P&gt;I would really appreciate any assistance with this.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;DIV style="clear: both;"&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Oct 2010 13:16:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dividing-two-sums/m-p/241301#M91733</guid>
      <dc:creator />
      <dc:date>2010-10-19T13:16:29Z</dc:date>
    </item>
    <item>
      <title>Dividing two sums</title>
      <link>https://community.qlik.com/t5/QlikView/Dividing-two-sums/m-p/241302#M91734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;S,&lt;BR /&gt;Nothing's wrong about the expression itself. Given the set conditions are the same, it is sum([Total_proceeds])/sum(Market_Value). It returns a mesure in %. Now, what is your definition of this expression total? It depends on your object properties. Is it sum of rows, or avg of rows, or expression total, or anything else? I assume you only need to use the correct total mode - which I cannot guess for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Oct 2010 13:35:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dividing-two-sums/m-p/241302#M91734</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-19T13:35:41Z</dc:date>
    </item>
    <item>
      <title>Dividing two sums</title>
      <link>https://community.qlik.com/t5/QlikView/Dividing-two-sums/m-p/241303#M91735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael, thanks for the response. Would you mind if I post a simplified example that you could look at. I've tried different 'of rows' properties such as average and sum. tx, S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Oct 2010 07:19:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dividing-two-sums/m-p/241303#M91735</guid>
      <dc:creator />
      <dc:date>2010-10-20T07:19:41Z</dc:date>
    </item>
    <item>
      <title>Dividing two sums</title>
      <link>https://community.qlik.com/t5/QlikView/Dividing-two-sums/m-p/241304#M91736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please share sample data / QV file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Oct 2010 08:36:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dividing-two-sums/m-p/241304#M91736</guid>
      <dc:creator />
      <dc:date>2010-10-20T08:36:38Z</dc:date>
    </item>
    <item>
      <title>Dividing two sums</title>
      <link>https://community.qlik.com/t5/QlikView/Dividing-two-sums/m-p/241305#M91737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ravi, attached. The correct total should be 46.76%. tx, S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Oct 2010 09:11:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dividing-two-sums/m-p/241305#M91737</guid>
      <dc:creator />
      <dc:date>2010-10-20T09:11:35Z</dc:date>
    </item>
    <item>
      <title>Dividing two sums</title>
      <link>https://community.qlik.com/t5/QlikView/Dividing-two-sums/m-p/241306#M91738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi,&lt;/P&gt;&lt;P&gt;I'm just curious as to whether you were able to figure out where I was going wrong after looking at the sample? It's such a stupid problem but it's been holding me up for a while now.&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Shane&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Oct 2010 11:12:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dividing-two-sums/m-p/241306#M91738</guid>
      <dc:creator />
      <dc:date>2010-10-20T11:12:00Z</dc:date>
    </item>
    <item>
      <title>Dividing two sums</title>
      <link>https://community.qlik.com/t5/QlikView/Dividing-two-sums/m-p/241307#M91739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually your current expression is calculating correctly. If you take out the two dimensions seperately and make a simple sum after you have chosen the same criteria as in your formula the sum calculates to&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width:74pt;border-collapse:collapse;" width="99"&gt;&lt;COLGROUP&gt;&lt;COL style="width:74pt;mso-width-source:userset;mso-width-alt:3620;" width="99" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR style="height:12.75pt;"&gt;&lt;TD align="right" class="xl22" height="17" style="width:74pt;height:12.75pt;background-color:whitesmoke;border:gainsboro 0.5pt solid;" width="99"&gt;&lt;STRONG&gt;R 279495909,75&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;and &lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width:74pt;border-collapse:collapse;" width="99"&gt;&lt;COLGROUP&gt;&lt;COL style="width:74pt;mso-width-source:userset;mso-width-alt:3620;" width="99" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR style="height:12.75pt;"&gt;&lt;TD align="right" class="xl22" height="17" style="width:74pt;height:12.75pt;background-color:whitesmoke;border:gainsboro 0.5pt solid;" width="99"&gt;&lt;STRONG&gt;R 601890761,43&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;which then gives&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width:92pt;border-collapse:collapse;" width="122"&gt;&lt;COLGROUP&gt;&lt;COL style="width:92pt;mso-width-source:userset;mso-width-alt:4461;mso-outline-parent:collapsed;" width="122" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR style="height:12.75pt;"&gt;&lt;TD align="right" height="17" style="width:92pt;height:12.75pt;background-color:transparent;border:#d4d0c8;" width="122"&gt;0,464363183&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I think you might have taken out the rows in Excel and summed them but the "Excel number" is not correct as rows are doubled. See enclosed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Oct 2010 12:00:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dividing-two-sums/m-p/241307#M91739</guid>
      <dc:creator />
      <dc:date>2010-10-20T12:00:07Z</dc:date>
    </item>
  </channel>
</rss>

