<?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: Null appears as Zero when using inside Sum Function in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Null-appears-as-Zero-when-using-inside-Sum-Function/m-p/1622547#M46352</link>
    <description>&lt;P&gt;You could not take the suggestion 1:1 because it's just a generic example to show which various measures might be useful. It needs the appropriate adjustments to your data-structure, fieldnames and a valid syntax.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
    <pubDate>Wed, 11 Sep 2019 10:18:53 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2019-09-11T10:18:53Z</dc:date>
    <item>
      <title>Null appears as Zero when using inside Sum Function</title>
      <link>https://community.qlik.com/t5/App-Development/Null-appears-as-Zero-when-using-inside-Sum-Function/m-p/1621558#M46272</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;I am creating YOY Sales in the Backend using PEEK function to get the Previous Year Value.&lt;/P&gt;&lt;P&gt;This works fine, the first entry of the Year appears as'-' in the data model for PrevYr a&lt;SPAN&gt;s expected.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But, when i create a chart basis this the PrevYr ,it appears as Zero on the First Year though it is supposed to be '-' when i use it inside Sum like Sum(PrevYr) but , if use just PrevYr as the expression it results with '-'&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to get '-' for the first entry as there is no previous year for it , even if i use Sum function.&lt;/P&gt;&lt;P&gt;Can someone please suggest how this could be done&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 10:43:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Null-appears-as-Zero-when-using-inside-Sum-Function/m-p/1621558#M46272</guid>
      <dc:creator>anushree1</dc:creator>
      <dc:date>2019-09-09T10:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Null appears as Zero when using inside Sum Function</title>
      <link>https://community.qlik.com/t5/App-Development/Null-appears-as-Zero-when-using-inside-Sum-Function/m-p/1621581#M46273</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;you could try with something like this:&lt;/P&gt;&lt;P&gt;If(Len(&lt;SPAN&gt;PrevYr&amp;nbsp;&lt;/SPAN&gt;)=0, Null() , Sum(&lt;SPAN&gt;PrevYr&amp;nbsp;&lt;/SPAN&gt;))&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 12:13:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Null-appears-as-Zero-when-using-inside-Sum-Function/m-p/1621581#M46273</guid>
      <dc:creator>StarinieriG</dc:creator>
      <dc:date>2019-09-09T12:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Null appears as Zero when using inside Sum Function</title>
      <link>https://community.qlik.com/t5/App-Development/Null-appears-as-Zero-when-using-inside-Sum-Function/m-p/1621666#M46279</link>
      <description>&lt;P&gt;This solution would not work as i will need to use&amp;nbsp;&lt;SPAN&gt;If(Len(sum(&lt;/SPAN&gt;&lt;SPAN&gt;PrevYr&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;))=0, Null() , Sum(&lt;/SPAN&gt;&lt;SPAN&gt;PrevYr&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;)) as in case there are no selection an aggregation like sum is essential&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 14:50:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Null-appears-as-Zero-when-using-inside-Sum-Function/m-p/1621666#M46279</guid>
      <dc:creator>anushree1</dc:creator>
      <dc:date>2019-09-09T14:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Null appears as Zero when using inside Sum Function</title>
      <link>https://community.qlik.com/t5/App-Development/Null-appears-as-Zero-when-using-inside-Sum-Function/m-p/1621669#M46280</link>
      <description>&lt;P&gt;Any suggestions&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/25001"&gt;@Vegar&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28684"&gt;@kaushiknsolanki&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 14:52:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Null-appears-as-Zero-when-using-inside-Sum-Function/m-p/1621669#M46280</guid>
      <dc:creator>anushree1</dc:creator>
      <dc:date>2019-09-09T14:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Null appears as Zero when using inside Sum Function</title>
      <link>https://community.qlik.com/t5/App-Development/Null-appears-as-Zero-when-using-inside-Sum-Function/m-p/1621876#M46297</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you share your app with sample data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 04:58:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Null-appears-as-Zero-when-using-inside-Sum-Function/m-p/1621876#M46297</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2019-09-10T04:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Null appears as Zero when using inside Sum Function</title>
      <link>https://community.qlik.com/t5/App-Development/Null-appears-as-Zero-when-using-inside-Sum-Function/m-p/1621905#M46299</link>
      <description>&lt;P&gt;Sure,&lt;/P&gt;&lt;P&gt;please find the attached,&lt;/P&gt;&lt;P&gt;I need the first row with 2011 as Year to have '-' for Grp.YOY column as there is no row above it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 06:21:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Null-appears-as-Zero-when-using-inside-Sum-Function/m-p/1621905#M46299</guid>
      <dc:creator>anushree1</dc:creator>
      <dc:date>2019-09-10T06:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Null appears as Zero when using inside Sum Function</title>
      <link>https://community.qlik.com/t5/App-Development/Null-appears-as-Zero-when-using-inside-Sum-Function/m-p/1622170#M46317</link>
      <description>&lt;P&gt;What's about:&amp;nbsp;If(Len(concat(PrevYr, ','))=0, Null() , Sum(PrevYr )) ?&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 14:06:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Null-appears-as-Zero-when-using-inside-Sum-Function/m-p/1622170#M46317</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-09-10T14:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Null appears as Zero when using inside Sum Function</title>
      <link>https://community.qlik.com/t5/App-Development/Null-appears-as-Zero-when-using-inside-Sum-Function/m-p/1622215#M46321</link>
      <description>&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;=if(RowNo()=1,null(), Sum([Grp.YOY]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The reason it is not coming is because you have created that field in script.&lt;/P&gt;&lt;P&gt;If you use below expression in chart it will show you null by default.&lt;/P&gt;&lt;P&gt;Above(Sum(Actual))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 15:36:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Null-appears-as-Zero-when-using-inside-Sum-Function/m-p/1622215#M46321</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2019-09-10T15:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Null appears as Zero when using inside Sum Function</title>
      <link>https://community.qlik.com/t5/App-Development/Null-appears-as-Zero-when-using-inside-Sum-Function/m-p/1622418#M46334</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28684"&gt;@kaushiknsolanki&lt;/a&gt;&amp;nbsp;, the solution would not work as we are specifically using Rowno() and making the first appear as null,&lt;/P&gt;&lt;P&gt;But this needs to be dynamic in case i add another field like Div the First on each entry of Div must show me '-'&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 05:48:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Null-appears-as-Zero-when-using-inside-Sum-Function/m-p/1622418#M46334</guid>
      <dc:creator>anushree1</dc:creator>
      <dc:date>2019-09-11T05:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Null appears as Zero when using inside Sum Function</title>
      <link>https://community.qlik.com/t5/App-Development/Null-appears-as-Zero-when-using-inside-Sum-Function/m-p/1622497#M46344</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The solution works well, But when I sort i see the '-' coming before the negative values , For Eg , is it possible to move 2011 at the bottom after showing negative values.&lt;/P&gt;&lt;P&gt;Snapshot:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/t5/image/serverpage/image-id/18943i8DA883B47BB61D58/image-size/medium?v=1.0&amp;amp;px=-1" border="0" title="clipboard_image_0.png" alt="clipboard_image_0.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached is the sample app&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 08:26:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Null-appears-as-Zero-when-using-inside-Sum-Function/m-p/1622497#M46344</guid>
      <dc:creator>anushree1</dc:creator>
      <dc:date>2019-09-11T08:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: Null appears as Zero when using inside Sum Function</title>
      <link>https://community.qlik.com/t5/App-Development/Null-appears-as-Zero-when-using-inside-Sum-Function/m-p/1622509#M46347</link>
      <description>&lt;P&gt;I'm not sure if it's possible at least not without any ugly side-effects ... you may use:&lt;/P&gt;&lt;P&gt;If(Len(concat(PrevYr, ','))=0, dual('-', 0) , Sum(PrevYr ))&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;If(Len(concat(PrevYr, ','))=0, dual('-', &lt;STRONG&gt;min/max(total aggr(Sum(PrevYr ), Dim1, Dim2)) +-1&lt;/STRONG&gt;) , Sum(PrevYr ))&lt;/P&gt;&lt;P&gt;but it will for example make trouble in totals and might be there calculated different - maybe by querying the levels with dimensionality() or ...&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 08:57:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Null-appears-as-Zero-when-using-inside-Sum-Function/m-p/1622509#M46347</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-09-11T08:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Null appears as Zero when using inside Sum Function</title>
      <link>https://community.qlik.com/t5/App-Development/Null-appears-as-Zero-when-using-inside-Sum-Function/m-p/1622531#M46350</link>
      <description>&lt;P&gt;it is not working&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 09:53:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Null-appears-as-Zero-when-using-inside-Sum-Function/m-p/1622531#M46350</guid>
      <dc:creator>anushree1</dc:creator>
      <dc:date>2019-09-11T09:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: Null appears as Zero when using inside Sum Function</title>
      <link>https://community.qlik.com/t5/App-Development/Null-appears-as-Zero-when-using-inside-Sum-Function/m-p/1622547#M46352</link>
      <description>&lt;P&gt;You could not take the suggestion 1:1 because it's just a generic example to show which various measures might be useful. It needs the appropriate adjustments to your data-structure, fieldnames and a valid syntax.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 10:18:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Null-appears-as-Zero-when-using-inside-Sum-Function/m-p/1622547#M46352</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-09-11T10:18:53Z</dc:date>
    </item>
  </channel>
</rss>

