<?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: Using Rangesum() on a single field? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-Rangesum-on-a-single-field/m-p/1094986#M642511</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should rather use SubField() to get one one full record for each comma separated value. Try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SubField(Value, ',') as Value&lt;/P&gt;&lt;P&gt;From &amp;lt;&amp;gt;;&lt;/P&gt;&lt;P&gt;This will give a table like&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;ID Value&lt;/P&gt;&lt;P&gt;ABC 50&lt;/P&gt;&lt;P&gt;ABC 30&lt;/P&gt;&lt;P&gt;EFG 10&lt;/P&gt;&lt;P&gt;EFG 20&lt;/P&gt;&lt;P&gt;EFG 30&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can sum them up in the back-end or at the front end&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Feb 2016 08:58:30 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2016-02-11T08:58:30Z</dc:date>
    <item>
      <title>Using Rangesum() on a single field?</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Rangesum-on-a-single-field/m-p/1094985#M642510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's posible to use Rangesum() on a single filed that contains comma separated values?&lt;/P&gt;&lt;P&gt;E.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Having this values:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 128px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="64"&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="64"&gt;&lt;STRONG&gt;Value&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;ABC,&lt;/TD&gt;&lt;TD&gt;50,30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;EFG,&lt;/TD&gt;&lt;TD&gt;10,30,20&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Rangesum(Value) as NewValue&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Resident...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 128px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="64"&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="64"&gt;&lt;STRONG&gt;NewValue&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;STRONG&gt;ABC&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right"&gt;&lt;STRONG&gt;80&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;STRONG&gt;EFG&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right"&gt;&lt;STRONG&gt;60&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried but the Sum always is zero!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 00:08:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Rangesum-on-a-single-field/m-p/1094985#M642510</guid>
      <dc:creator>alexdataiq</dc:creator>
      <dc:date>2016-02-11T00:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using Rangesum() on a single field?</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Rangesum-on-a-single-field/m-p/1094986#M642511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should rather use SubField() to get one one full record for each comma separated value. Try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SubField(Value, ',') as Value&lt;/P&gt;&lt;P&gt;From &amp;lt;&amp;gt;;&lt;/P&gt;&lt;P&gt;This will give a table like&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;ID Value&lt;/P&gt;&lt;P&gt;ABC 50&lt;/P&gt;&lt;P&gt;ABC 30&lt;/P&gt;&lt;P&gt;EFG 10&lt;/P&gt;&lt;P&gt;EFG 20&lt;/P&gt;&lt;P&gt;EFG 30&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can sum them up in the back-end or at the front end&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 08:58:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Rangesum-on-a-single-field/m-p/1094986#M642511</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-02-11T08:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using Rangesum() on a single field?</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Rangesum-on-a-single-field/m-p/1094987#M642512</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;Rangesum() works when you have a static number of values, but in your case the number of values are different for each row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best solution is to use SubField() like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;ID,&lt;/P&gt;&lt;P&gt;SubField(Value, ',') AS Value&lt;/P&gt;&lt;P&gt;FROM DataSource;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;Noconcatenate&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;ID,&lt;/P&gt;&lt;P&gt;Sum(Value) AS Value&lt;/P&gt;&lt;P&gt;RESIDENT Temp&lt;/P&gt;&lt;P&gt;Group by ID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 09:04:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Rangesum-on-a-single-field/m-p/1094987#M642512</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2016-02-11T09:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using Rangesum() on a single field?</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Rangesum-on-a-single-field/m-p/1094988#M642513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or, for this specific scenario you could try a rather tricky solution like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 12pt; font-family: 'courier new', courier; font-weight: inherit;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Evaluate(Replace(Value, ',' , '+'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier; font-style: inherit; font-weight: inherit; line-height: 1.5em;"&gt;&lt;STRONG&gt;))&lt;/STRONG&gt; as NewValue&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 12pt; font-family: 'courier new', courier; font-weight: inherit;"&gt;Resident...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Edit: Corrected a brace&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 09:11:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Rangesum-on-a-single-field/m-p/1094988#M642513</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-02-11T09:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using Rangesum() on a single field?</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Rangesum-on-a-single-field/m-p/1094989#M642514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or you could simply do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Evaluate(Replace(Value, ',', '+')) As NewValue&lt;/P&gt;&lt;P&gt;Resident ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: beaten to the punch by tresesco &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/cry.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 09:25:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Rangesum-on-a-single-field/m-p/1094989#M642514</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-02-11T09:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using Rangesum() on a single field?</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Rangesum-on-a-single-field/m-p/1094990#M642515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or a slightly more robust version:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Evaluate('(' &amp;amp; Replace(Value, ',', ')+(') &amp;amp; ')') As NewValue&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 09:29:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Rangesum-on-a-single-field/m-p/1094990#M642515</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-02-11T09:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using Rangesum() on a single field?</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Rangesum-on-a-single-field/m-p/1094991#M642516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, may be this help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; Evaluate('RangeSum(' &amp;amp; ABC &amp;amp; ')') as ABC,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Evaluate('RangeSum(' &amp;amp; EFG &amp;amp; ')') as EFG&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;Unfortunately, i can't understand how give value of field to function "&lt;SPAN style="font-size: 13.3333px;"&gt;RangeSum&lt;/SPAN&gt;" like list of parameters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 10:45:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Rangesum-on-a-single-field/m-p/1094991#M642516</guid>
      <dc:creator>smirkinaa</dc:creator>
      <dc:date>2016-02-11T10:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using Rangesum() on a single field?</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Rangesum-on-a-single-field/m-p/1094992#M642517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is exactly the kind of trick that I wanted! So far works like a charm!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initially I was using &lt;STRONG&gt;SubField&lt;/STRONG&gt; to create multiple records and then using &lt;STRONG&gt;Group By&lt;/STRONG&gt; to get the product of the value of a field, but this is neater.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 17:33:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Rangesum-on-a-single-field/m-p/1094992#M642517</guid>
      <dc:creator>alexdataiq</dc:creator>
      <dc:date>2016-02-11T17:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using Rangesum() on a single field?</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Rangesum-on-a-single-field/m-p/1094993#M642518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, this Is exactly how I was doing it but instead of Sum I was using another formula to get the product of the values of the field in question. But since my table had tons of fields it was rather cumbersome to add each field to the GroupBy. Besides grouping is expensive operation in my short experience. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's why I wanted someting more concise (and elegant) like using RangeSum on a single field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 17:36:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Rangesum-on-a-single-field/m-p/1094993#M642518</guid>
      <dc:creator>alexdataiq</dc:creator>
      <dc:date>2016-02-11T17:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using Rangesum() on a single field?</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Rangesum-on-a-single-field/m-p/1094994#M642519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hehe, good answer! &lt;A href="https://community.qlik.com/qlik-users/26418"&gt;tresesco&lt;/A&gt; beated you for a few minutes &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 17:38:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Rangesum-on-a-single-field/m-p/1094994#M642519</guid>
      <dc:creator>alexdataiq</dc:creator>
      <dc:date>2016-02-11T17:38:05Z</dc:date>
    </item>
  </channel>
</rss>

