<?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: Very basic SUM help needed in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Very-basic-SUM-help-needed/m-p/548659#M1123158</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was actually only selecting subsets of the GL records in order to avoid getting matching debit/credit records but apparently I didn't really succeded in that...:-(. I ended up only selecting the last 5 records and then I got a total that was different from 0. &lt;/P&gt;&lt;P&gt;I think I just got a little confused about the syntax since it kept showing 0 no matter how I changed my load...:-).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Steen &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jan 2014 10:34:57 GMT</pubDate>
    <dc:creator>sspe</dc:creator>
    <dc:date>2014-01-22T10:34:57Z</dc:date>
    <item>
      <title>Very basic SUM help needed</title>
      <link>https://community.qlik.com/t5/QlikView/Very-basic-SUM-help-needed/m-p/548653#M1123152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm doing some testing of various load scenarios and for that purpose I have added a text box to my application which I just want to show the sum of an Amount field for all the records I load.&lt;/P&gt;&lt;P&gt;I though this should be very simple, but for some reason I can't get it to show the total sum.&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table I load have the fields GeneralLedger_EntryNo and GeneralLedger_Amount so I tried to add an expression like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ( {1 } &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;GeneralLedger_Amount_LCY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;in my text box, but that always only show 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I have also tried with &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ( {$ } &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;GeneralLedger_Amount_LCY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;and that will give me the sum for the records I select if I add a listbox containing the GenerelLEdger_EntryNo, but I don't want to have to do any selections - I just always want the total sum for all records.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I think this should be a very simple excercise, but apparently there are something I don't get.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Steen&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 10:04:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Very-basic-SUM-help-needed/m-p/548653#M1123152</guid>
      <dc:creator>sspe</dc:creator>
      <dc:date>2014-01-22T10:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: Very basic SUM help needed</title>
      <link>https://community.qlik.com/t5/QlikView/Very-basic-SUM-help-needed/m-p/548654#M1123153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sum(Total &lt;SPAN style="color: #800000; font-size: 8pt;"&gt;GeneralLedger_Amount_LCY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 10:06:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Very-basic-SUM-help-needed/m-p/548654#M1123153</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-01-22T10:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Very basic SUM help needed</title>
      <link>https://community.qlik.com/t5/QlikView/Very-basic-SUM-help-needed/m-p/548655#M1123154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That sounds strange.&lt;/P&gt;&lt;P&gt;With no selections made, both expressions should give you the same result (which is the sum of all values in &lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11px;"&gt;GeneralLedger_Amount_LCY&lt;/SPAN&gt;).&lt;/P&gt;&lt;P&gt;Is the &lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11px;"&gt;GeneralLedger_Amount_LCY&lt;/SPAN&gt; field somehow not interpreted as numeric values?&lt;/P&gt;&lt;P&gt;Can you provide an example of what the field values look like?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 10:10:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Very-basic-SUM-help-needed/m-p/548655#M1123154</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-22T10:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Very basic SUM help needed</title>
      <link>https://community.qlik.com/t5/QlikView/Very-basic-SUM-help-needed/m-p/548656#M1123155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(All &lt;SPAN style="color: #800000; font-size: 8pt;"&gt;GeneralLedger_Amount_LCY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;if need total sum always irrespective of selections.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 10:11:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Very-basic-SUM-help-needed/m-p/548656#M1123155</guid>
      <dc:creator />
      <dc:date>2014-01-22T10:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Very basic SUM help needed</title>
      <link>https://community.qlik.com/t5/QlikView/Very-basic-SUM-help-needed/m-p/548657#M1123156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you summing all debits and credits so the sum showing zero is correct?&lt;/P&gt;&lt;P&gt;Normally General Ledger transactions will sum to zero if all transactions are selected, as every transaction should have a reversing amount against&amp;nbsp; a different GL code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To see a value you would need to select a range of GL codes rather than all GL codes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 10:14:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Very-basic-SUM-help-needed/m-p/548657#M1123156</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2014-01-22T10:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Very basic SUM help needed</title>
      <link>https://community.qlik.com/t5/QlikView/Very-basic-SUM-help-needed/m-p/548658#M1123157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good point! Totally didn't think of that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 10:16:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Very-basic-SUM-help-needed/m-p/548658#M1123157</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-22T10:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Very basic SUM help needed</title>
      <link>https://community.qlik.com/t5/QlikView/Very-basic-SUM-help-needed/m-p/548659#M1123158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was actually only selecting subsets of the GL records in order to avoid getting matching debit/credit records but apparently I didn't really succeded in that...:-(. I ended up only selecting the last 5 records and then I got a total that was different from 0. &lt;/P&gt;&lt;P&gt;I think I just got a little confused about the syntax since it kept showing 0 no matter how I changed my load...:-).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Steen &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 10:34:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Very-basic-SUM-help-needed/m-p/548659#M1123158</guid>
      <dc:creator>sspe</dc:creator>
      <dc:date>2014-01-22T10:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Very basic SUM help needed</title>
      <link>https://community.qlik.com/t5/QlikView/Very-basic-SUM-help-needed/m-p/548660#M1123159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also gross up the numbers (ie sum all the credits and sum all the debits separately). This is what I normally do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All negative values:&lt;/P&gt;&lt;P&gt;Sum (RangeMax(GeneralLedger_Amount_LCY, 0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All positive values:&lt;/P&gt;&lt;P&gt;Sum (RangeMin(GeneralLedger_Amount_LCY, 0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 10:36:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Very-basic-SUM-help-needed/m-p/548660#M1123159</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-01-22T10:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Very basic SUM help needed</title>
      <link>https://community.qlik.com/t5/QlikView/Very-basic-SUM-help-needed/m-p/548661#M1123160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yep - I think you are right that it might be a better option to do something like that. Thanks for the input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Steen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 10:43:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Very-basic-SUM-help-needed/m-p/548661#M1123160</guid>
      <dc:creator>sspe</dc:creator>
      <dc:date>2014-01-22T10:43:41Z</dc:date>
    </item>
  </channel>
</rss>

