<?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: Show 0 values in Line Chart but not null values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Show-0-values-in-Line-Chart-but-not-null-values/m-p/1194545#M519748</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, that worked great. I had to change the null values to -1 in the load script and change your expression to&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if ( Sum(Open) &amp;gt;= 0 , Sum(Open) ,null()) &lt;/EM&gt;in order to be able to show 0 if it is 0 and not null. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Oct 2016 08:29:02 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-10-14T08:29:02Z</dc:date>
    <item>
      <title>Show 0 values in Line Chart but not null values</title>
      <link>https://community.qlik.com/t5/QlikView/Show-0-values-in-Line-Chart-but-not-null-values/m-p/1194541#M519744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am struggling with a problem regarding a line chart. I have a line chart showing three lines. Two of the lines are already showing "future" values while one is supposed to show only the current and historical value. I attached my qvw for a better understanding. The line "Open" is supposed to stop if the value is null. In my example set the filters to Sprint = 2 and Burndown Type = Task Burndown. The blue line (Open) is supposed to show only data until 12.10.2016. At the moment it displays 0 values for any upcoming days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot just check the supress Zero-Values on the presentation tab, because the line for Supposed needs to end at a 0 value and also the Open line could end on a 0 value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/140442_Capture.PNG" style="height: 264px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The display of the data should remain exactly the same with the only difference that the blue line should stop on 12.10.2016.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 06:47:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-0-values-in-Line-Chart-but-not-null-values/m-p/1194541#M519744</guid>
      <dc:creator />
      <dc:date>2016-10-13T06:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: Show 0 values in Line Chart but not null values</title>
      <link>https://community.qlik.com/t5/QlikView/Show-0-values-in-Line-Chart-but-not-null-values/m-p/1194542#M519745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set the expression's background colour like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;if(sum(Open)=0,white())&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 17:14:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-0-values-in-Line-Chart-but-not-null-values/m-p/1194542#M519745</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-13T17:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Show 0 values in Line Chart but not null values</title>
      <link>https://community.qlik.com/t5/QlikView/Show-0-values-in-Line-Chart-but-not-null-values/m-p/1194543#M519746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this is not 100% what I wanted to achieve. At the moment the line on the 0 values disappeared but at the end of the current value the lin still goes down. Any idea on how I can prevent that? I just want it to stop at the height the last day with data had.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/140583_Capture.PNG" style="height: 242px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 05:57:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-0-values-in-Line-Chart-but-not-null-values/m-p/1194543#M519746</guid>
      <dc:creator />
      <dc:date>2016-10-14T05:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Show 0 values in Line Chart but not null values</title>
      <link>https://community.qlik.com/t5/QlikView/Show-0-values-in-Line-Chart-but-not-null-values/m-p/1194544#M519747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change your expression to :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;EM&gt;&amp;nbsp; =if ( Sum(Open) &amp;gt; 0 , Sum(Open) ,null())&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 08:24:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-0-values-in-Line-Chart-but-not-null-values/m-p/1194544#M519747</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-14T08:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Show 0 values in Line Chart but not null values</title>
      <link>https://community.qlik.com/t5/QlikView/Show-0-values-in-Line-Chart-but-not-null-values/m-p/1194545#M519748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, that worked great. I had to change the null values to -1 in the load script and change your expression to&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if ( Sum(Open) &amp;gt;= 0 , Sum(Open) ,null()) &lt;/EM&gt;in order to be able to show 0 if it is 0 and not null. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 08:29:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-0-values-in-Line-Chart-but-not-null-values/m-p/1194545#M519748</guid>
      <dc:creator />
      <dc:date>2016-10-14T08:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: Show 0 values in Line Chart but not null values</title>
      <link>https://community.qlik.com/t5/QlikView/Show-0-values-in-Line-Chart-but-not-null-values/m-p/1194546#M519749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Sunny&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are good at cunning set analysis.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whilst the above works do you know a way of doing this with set analysis to replace the &lt;EM&gt;if&lt;/EM&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;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 08:40:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-0-values-in-Line-Chart-but-not-null-values/m-p/1194546#M519749</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-14T08:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: Show 0 values in Line Chart but not null values</title>
      <link>https://community.qlik.com/t5/QlikView/Show-0-values-in-Line-Chart-but-not-null-values/m-p/1194547#M519750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bill -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the problem is that we somehow need to make the expression give you Null() instead of 0 because as long as it is zero, the 'Suppress Zero Values' will be needed to check. I don't think set analysis can force an expression to give a zero. The only other way I can think of doing this is may be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum(Open) * Avg(Open)/Avg(Open)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where Avg(Open) will be null instead of 0 like in the case of Sum. Not sure if this is any better than using an if here &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 12:03:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-0-values-in-Line-Chart-but-not-null-values/m-p/1194547#M519750</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-14T12:03:45Z</dc:date>
    </item>
  </channel>
</rss>

