<?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: How to sum a dimension where some of the entries are null in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-sum-a-dimension-where-some-of-the-entries-are-null/m-p/1857735#M1215964</link>
    <description>&lt;P&gt;Hi Abhijit&lt;/P&gt;
&lt;P&gt;Not sure why but&amp;nbsp; the script brings back errors when i add this in&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paul_ripley_0-1636555506108.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/66365iECBE771E9625B3C4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paul_ripley_0-1636555506108.png" alt="paul_ripley_0-1636555506108.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Nov 2021 14:45:50 GMT</pubDate>
    <dc:creator>paul_ripley</dc:creator>
    <dc:date>2021-11-10T14:45:50Z</dc:date>
    <item>
      <title>How to sum a dimension where some of the entries are null</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sum-a-dimension-where-some-of-the-entries-are-null/m-p/1856753#M1215929</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I have a stable in QV and&amp;nbsp; the amounts are held in the dimension AM.Charge Amount .&amp;nbsp; I would like to sum the values in this dimension but some of the values are NULL.&amp;nbsp; I have tried amending the Load script but it still seem to pull in NULLS and so I cannot sum the column&amp;nbsp; - "Totals on First Row" doesnt work&lt;/P&gt;
&lt;P&gt;IF(IsNull([Charge Amount])=0,[Charge Amount],'0') as [Charge Amount],&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paul_ripley_0-1636390193280.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/66213iDAC5F7C6CD122CFB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paul_ripley_0-1636390193280.png" alt="paul_ripley_0-1636390193280.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone know how I could so this?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Paul&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 16:51:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sum-a-dimension-where-some-of-the-entries-are-null/m-p/1856753#M1215929</guid>
      <dc:creator>paul_ripley</dc:creator>
      <dc:date>2021-11-08T16:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum a dimension where some of the entries are null</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sum-a-dimension-where-some-of-the-entries-are-null/m-p/1856869#M1215934</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/49827"&gt;@paul_ripley&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please use amend your field in the script as below&lt;/P&gt;
&lt;P&gt;Coalesce(&lt;SPAN&gt;[Charge Amount],0&lt;/SPAN&gt;) as&amp;nbsp;&lt;SPAN&gt;[Charge Amount]&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 03:16:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sum-a-dimension-where-some-of-the-entries-are-null/m-p/1856869#M1215934</guid>
      <dc:creator>abhijitnalekar</dc:creator>
      <dc:date>2021-11-09T03:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum a dimension where some of the entries are null</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sum-a-dimension-where-some-of-the-entries-are-null/m-p/1857735#M1215964</link>
      <description>&lt;P&gt;Hi Abhijit&lt;/P&gt;
&lt;P&gt;Not sure why but&amp;nbsp; the script brings back errors when i add this in&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paul_ripley_0-1636555506108.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/66365iECBE771E9625B3C4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paul_ripley_0-1636555506108.png" alt="paul_ripley_0-1636555506108.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 14:45:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sum-a-dimension-where-some-of-the-entries-are-null/m-p/1857735#M1215964</guid>
      <dc:creator>paul_ripley</dc:creator>
      <dc:date>2021-11-10T14:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum a dimension where some of the entries are null</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sum-a-dimension-where-some-of-the-entries-are-null/m-p/1857743#M1215965</link>
      <description>&lt;P&gt;Coalesce is a newer function, only available in the 2021 release of QlikView. From a logical perspective, it's no different from:&lt;/P&gt;
&lt;P&gt;if(isnull([Charge Amount]),0,[Charge Amount])&lt;/P&gt;
&lt;P&gt;I'm a tad confused as to your goal and approach here - why are you trying to create a total for a dimension rather than using a measure? How do you expect it to aggregate a total when you aren't using an aggregation function? Why are you placing the string '0' instead of using a numeric 0?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 14:58:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sum-a-dimension-where-some-of-the-entries-are-null/m-p/1857743#M1215965</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-11-10T14:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum a dimension where some of the entries are null</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sum-a-dimension-where-some-of-the-entries-are-null/m-p/1857779#M1215967</link>
      <description>&lt;P&gt;When you say use a measure what do you mean?&amp;nbsp; Trying to add the rows up but not all rows contain data&lt;/P&gt;
&lt;P&gt;Paul&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 15:28:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sum-a-dimension-where-some-of-the-entries-are-null/m-p/1857779#M1215967</guid>
      <dc:creator>paul_ripley</dc:creator>
      <dc:date>2021-11-10T15:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum a dimension where some of the entries are null</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sum-a-dimension-where-some-of-the-entries-are-null/m-p/1857783#M1215968</link>
      <description>&lt;P&gt;If you use a measure (expression), you should be able to simply sum([Charge Amount]). This will automatically ignore null values and the totals should work. Note that this requires using a straight table or pivot table (but ideally you want to do that anyway, Table objects aren't the best option in most cases).&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 15:35:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sum-a-dimension-where-some-of-the-entries-are-null/m-p/1857783#M1215968</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-11-10T15:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum a dimension where some of the entries are null</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sum-a-dimension-where-some-of-the-entries-are-null/m-p/1857790#M1215969</link>
      <description>&lt;P&gt;Great many thanks&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 15:42:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sum-a-dimension-where-some-of-the-entries-are-null/m-p/1857790#M1215969</guid>
      <dc:creator>paul_ripley</dc:creator>
      <dc:date>2021-11-10T15:42:47Z</dc:date>
    </item>
  </channel>
</rss>

