<?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: Forcing 0 Values into Line Chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Forcing-0-Values-into-Line-Chart/m-p/111433#M759169</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not 100% sure but can you give a try with the below expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;FreightPaid={'Paid in UK'},INSURED={'INSURED'}&amp;gt;}JOBCOUNTER) * AVG(1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Sep 2018 11:30:34 GMT</pubDate>
    <dc:creator>trdandamudi</dc:creator>
    <dc:date>2018-09-18T11:30:34Z</dc:date>
    <item>
      <title>Forcing 0 Values into Line Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Forcing-0-Values-into-Line-Chart/m-p/111430#M759166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am struggling to get a line chart of mine to show zero values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried un-ticking Suppress When Value is Null &amp;amp; Supress Zero Values but it still does not work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a master calendar to generate missing dates in my script and need to insert these values with a 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression in the chart I have tried to do this with is below but this does not work;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if ( count({$&amp;lt;FreightPaid={'Paid in UK'},INSURED={'INSURED'}&amp;gt;}JOBCOUNTER) &amp;gt; 0 , (Count({$&amp;lt;FreightPaid={'Paid in UK'},INSURED={'INSURED'}&amp;gt;}JOBCOUNTER)), 0 )&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also been advised I can add one dummy zero record into the fact table for each month by using a calendar and concat it back to the original table but I do not know how to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached an example QVW. &lt;/P&gt;&lt;P&gt;For reference on selection of 2017 there was 1 job in Sep - I want the line chart to show 0 value for all the remaining months on one continuous line to get a better idea of the trend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Forcing-0-Values-into-Line-Chart/m-p/111430#M759166</guid>
      <dc:creator>mattdt1811</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Forcing 0 Values into Line Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Forcing-0-Values-into-Line-Chart/m-p/111431#M759167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this what you want ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ZeroLinegraph.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/213646_ZeroLinegraph.jpg" style="height: 364px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2018 22:11:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Forcing-0-Values-into-Line-Chart/m-p/111431#M759167</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2018-09-14T22:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Forcing 0 Values into Line Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Forcing-0-Values-into-Line-Chart/m-p/111432#M759168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Hi Thirumala,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Yes this does work a lot better thanks. However it is showing as below when I insert this into my master QVW – I think this is where the User ID has raised no jobs for the month.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;IMG alt="qlikchart.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/213809_qlikchart.jpg" style="height: 232px; width: 620px;" /&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;I have also been advised this can be solved by using the below script beneath the Temp Calendar Script;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue;"&gt;Concatenate&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;(TEMP1)&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue;"&gt;load&lt;/STRONG&gt;&lt;SPAN style="color: black;"&gt; 'Paid in UK' &lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: maroon;"&gt;FreightPaid&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;,&lt;BR /&gt; 'Insured' &lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: maroon;"&gt;INSURED&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;TempDate&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: maroon;"&gt;[CREATION DATE]&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;,&lt;BR /&gt; 'BALDWIN@M'&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: maroon;"&gt;[USER CREATED BY]&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;,&lt;BR /&gt; 1 &lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: maroon;"&gt;Dummy&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;,&lt;BR /&gt; 0 &lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: maroon;"&gt;JOBCOUNTER&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt; TempCalendar; &lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue;"&gt;Drop&lt;/STRONG&gt; &lt;SPAN style="color: blue;"&gt;Table&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt; TempCalendar;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;And then using:&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;=sum({$&amp;lt;FreightPaid={'Paid in UK'},INSURED={'INSURED'}&amp;gt;}JOBCOUNTER)&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;As the expression in the chart.&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;This does work for my own user ID however I will need to get this to work for all User ID’s, Customers, Locations etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Do you know how I would do this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Many Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2018 09:23:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Forcing-0-Values-into-Line-Chart/m-p/111432#M759168</guid>
      <dc:creator>mattdt1811</dc:creator>
      <dc:date>2018-09-18T09:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Forcing 0 Values into Line Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Forcing-0-Values-into-Line-Chart/m-p/111433#M759169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not 100% sure but can you give a try with the below expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;FreightPaid={'Paid in UK'},INSURED={'INSURED'}&amp;gt;}JOBCOUNTER) * AVG(1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2018 11:30:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Forcing-0-Values-into-Line-Chart/m-p/111433#M759169</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2018-09-18T11:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Forcing 0 Values into Line Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Forcing-0-Values-into-Line-Chart/m-p/111434#M759170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately this generates the same result, however it is still a lot better than what I was using previously.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2018 13:16:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Forcing-0-Values-into-Line-Chart/m-p/111434#M759170</guid>
      <dc:creator>mattdt1811</dc:creator>
      <dc:date>2018-09-18T13:16:19Z</dc:date>
    </item>
  </channel>
</rss>

