<?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 Null Values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-Null-Values/m-p/559017#M208667</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i was wondering how i could sum null vales of a field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i wanted to&lt;/P&gt;&lt;P&gt;sum(Sales)&lt;/P&gt;&lt;P&gt;but i want to add set analysis to include a field [Transaction Type] where [Transaction Type] is null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried ..&lt;/P&gt;&lt;P&gt;if(isnull([Transaction Type]), sum(Sales))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this gives me the same result as Sum(Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone offer any help please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Nov 2013 14:50:36 GMT</pubDate>
    <dc:creator>hopkinsc</dc:creator>
    <dc:date>2013-11-01T14:50:36Z</dc:date>
    <item>
      <title>Sum Null Values</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Null-Values/m-p/559017#M208667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i was wondering how i could sum null vales of a field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i wanted to&lt;/P&gt;&lt;P&gt;sum(Sales)&lt;/P&gt;&lt;P&gt;but i want to add set analysis to include a field [Transaction Type] where [Transaction Type] is null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried ..&lt;/P&gt;&lt;P&gt;if(isnull([Transaction Type]), sum(Sales))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this gives me the same result as Sum(Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone offer any help please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 14:50:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Null-Values/m-p/559017#M208667</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2013-11-01T14:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Null Values</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Null-Values/m-p/559018#M208668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum( if(isnull([Transaction Type]), Sales))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 14:55:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Null-Values/m-p/559018#M208668</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-11-01T14:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Null Values</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Null-Values/m-p/559019#M208669</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;Thanks thats what i wanted.. &lt;/P&gt;&lt;P&gt;I now have the following 2 expressions..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;[To Group]={'Other'}&amp;gt;}[Net Invoice Line Value Total])&lt;/P&gt;&lt;P&gt;sum({&amp;lt;[Transaction Code]={'CRN','STD','SEC'}&amp;gt;} if(isnull([To Group]), [Net Invoice Line Value Total]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to combine them into one expression, could you help me combine them please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 15:19:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Null-Values/m-p/559019#M208669</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2013-11-01T15:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Null Values</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Null-Values/m-p/559020#M208670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hang on, am i being stupid? is it as easy as adding them both together?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 15:22:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Null-Values/m-p/559020#M208670</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2013-11-01T15:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Null Values</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Null-Values/m-p/559021#M208671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The obvious solution would be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;[To Group]={'Other'}&amp;gt;}[Net Invoice Line Value Total])&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;+&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({&amp;lt;[Transaction Code]={'CRN','STD','SEC'}&amp;gt;} if(isnull([To Group]), [Net Invoice Line Value Total]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume you want only one sum(). This is not so easy to answer, the if() function is evaluated per row, while the set expression filter on the distinct field values. Besides that, you can't select a NULL value (in field To Group).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Might sound confusing, all I want to say is that the solution probably depends on your data model or might involve changes to your data model. So if possible, post a small app that represents your model, including some sample data and your expected outcome.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 15:26:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Null-Values/m-p/559021#M208671</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-11-01T15:26:20Z</dc:date>
    </item>
  </channel>
</rss>

