<?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 SUM Multiple Fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SUM-Multiple-Fields/m-p/1268632#M399269</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear experts&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I am trying to derive a percentage using the Expression below, it will display in a text object (its a visual thing).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num(sum([field 1])+sum([field 2])+sum([field 3])/sum([field 4]),'#0%'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the statement 'Expression OK' but the figure I get back is neither correct in value or formatted as a %.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to this, so not yet familiar with the 'language' and common methodologies - using QV 11.2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Grateful for any guidance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jan 2017 10:19:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-01-18T10:19:56Z</dc:date>
    <item>
      <title>SUM Multiple Fields</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-Multiple-Fields/m-p/1268632#M399269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear experts&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I am trying to derive a percentage using the Expression below, it will display in a text object (its a visual thing).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num(sum([field 1])+sum([field 2])+sum([field 3])/sum([field 4]),'#0%'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the statement 'Expression OK' but the figure I get back is neither correct in value or formatted as a %.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to this, so not yet familiar with the 'language' and common methodologies - using QV 11.2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Grateful for any guidance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 10:19:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-Multiple-Fields/m-p/1268632#M399269</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-18T10:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: SUM Multiple Fields</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-Multiple-Fields/m-p/1268633#M399270</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;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=num( Rangesum(sum([field 1]),sum([field 2]),sum([field 3]) ) /sum([field 4]),'#0%')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 10:26:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-Multiple-Fields/m-p/1268633#M399270</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-01-18T10:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: SUM Multiple Fields</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-Multiple-Fields/m-p/1268634#M399271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Stefan - but this seems return the value of Field 1 + Field 2 only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 10:33:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-Multiple-Fields/m-p/1268634#M399271</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-18T10:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: SUM Multiple Fields</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-Multiple-Fields/m-p/1268635#M399272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also try this:&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;=Num(&lt;SPAN style="color: #ff0000; font-size: 12pt;"&gt;(&lt;/SPAN&gt;Sum([field 1])+Sum([field 2])+Sum([field 3])&lt;SPAN style="color: #ff0000; font-size: 12pt;"&gt;)&lt;/SPAN&gt;/Sum([field 4]),'#0%'&lt;SPAN style="color: #ff0000; font-size: 12pt;"&gt;)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 10:33:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-Multiple-Fields/m-p/1268635#M399272</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-18T10:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: SUM Multiple Fields</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-Multiple-Fields/m-p/1268636#M399273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect - Thank you Sunny - I was warned it would all be in the brackets! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 10:35:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-Multiple-Fields/m-p/1268636#M399273</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-18T10:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: SUM Multiple Fields</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-Multiple-Fields/m-p/1268637#M399274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, or maybe even&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; background-color: #f2f2f2;"&gt;=num(Sum( Rangesum( [field 1],[field 2],[field 3]) ) / sum([field 4]),'#0%')&lt;/SPAN&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; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/SPAN&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; background-color: #f2f2f2;"&gt;Bottom line: Take care of multiplication / division operator precedes addition operator rule, use brackets or functions to get the sum of fields right before dividing it by the denominator.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 10:41:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-Multiple-Fields/m-p/1268637#M399274</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-01-18T10:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: SUM Multiple Fields</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-Multiple-Fields/m-p/1268638#M399275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the additional method and sound advice Stefan, very much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 10:44:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-Multiple-Fields/m-p/1268638#M399275</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-18T10:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: SUM Multiple Fields</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-Multiple-Fields/m-p/1268639#M399276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Without knowing your data model (&lt;SPAN style="font-size: 13.3333px;"&gt;e.g. your fields are located in different tables)&lt;/SPAN&gt; and data, it's hard to tell why this is happening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But glad you got it working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 11:45:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-Multiple-Fields/m-p/1268639#M399276</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-01-18T11:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: SUM Multiple Fields</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-Multiple-Fields/m-p/1664559#M449074</link>
      <description>&lt;P&gt;I found the following to work in QlikSense for me, using the "rangesum" replacing all "sum" and using "," instead of "+"&lt;/P&gt;&lt;P&gt;num(rangesum(&lt;SPAN&gt;[field 1]&lt;/SPAN&gt;)/Rangesum(rangesum(&lt;SPAN&gt;[field 2]&lt;/SPAN&gt;),rangesum(&lt;SPAN&gt;[field 3]&lt;/SPAN&gt;),rangesum(&lt;SPAN&gt;[field 4]&lt;/SPAN&gt;)) ,'#0%')&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 17:57:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-Multiple-Fields/m-p/1664559#M449074</guid>
      <dc:creator>daclarke</dc:creator>
      <dc:date>2020-01-10T17:57:06Z</dc:date>
    </item>
  </channel>
</rss>

