<?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 for x-axis when there is no data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Show-0-for-x-axis-when-there-is-no-data/m-p/394125#M565829</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;Okay, I understand your problem. I agree there should be a setting to allow this - continuous axis doesn't work as you need it - but as there isn't possibly the easiest way is to add the missing data to your tables in the load script. If this isn't possible, the following MIGHT work if the value is held in a table and not part of an aggregated value outside of the load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this as your dimension ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=ValueLoop(min(total ID),max(total ID))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will create a range from the smallest to largest value.&amp;nbsp; You then need to create 4 expressions (although you could possible merge into one once full tested).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. &lt;STRONG&gt;=FieldIndex('ID',ValueLoop(min(total ID),max(total ID))) &lt;/STRONG&gt;- label as Index&lt;/P&gt;&lt;P&gt;2.&lt;STRONG&gt; =concat({1} NumValue,';',ID) &lt;/STRONG&gt;- label as AllValues, where NumValue is the value to plot&lt;/P&gt;&lt;P&gt;3. &lt;STRONG&gt;=subfield(AllValues,';',Index) &lt;/STRONG&gt;- label as IDValue&lt;/P&gt;&lt;P&gt;4. &lt;STRONG&gt;=If(IDValue&amp;gt;0,IDValue,0) &lt;/STRONG&gt;- final value to plot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could then try to merge the expressions, or set the first three to invisible and max Axes to Max(NumValue).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flipside&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT:&lt;/P&gt;&lt;P&gt;The above is probably too complicated - you can do this instead in a single expression ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COUNT:&lt;/P&gt;&lt;P&gt;=sum(IF(ID=ValueLoop(min(total ID),max(total ID)),1,0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM:&lt;/P&gt;&lt;P&gt;=SUM(IF(ID=ValueLoop(min(total ID),max(total ID)),NumValue,0))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Dec 2012 11:36:03 GMT</pubDate>
    <dc:creator>flipside</dc:creator>
    <dc:date>2012-12-03T11:36:03Z</dc:date>
    <item>
      <title>Show 0 for x-axis when there is no data</title>
      <link>https://community.qlik.com/t5/QlikView/Show-0-for-x-axis-when-there-is-no-data/m-p/394122#M565826</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;I have a huge list of data with a number of X&lt;/P&gt;&lt;P&gt;I have made the below graph to count the number of times X appears into Y.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sometimes the count is 0, the graph will skip the number X with 0 count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyway the show the all the value of the X axis between my highest and lowest X with count.&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="25846" class="jive-image-thumbnail jive-image" height="151" onclick="" alt="qv_fill_in_the_blank.JPG" src="https://community.qlik.com/legacyfs/online/25846_qv_fill_in_the_blank.JPG" width="894" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 09:50:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-0-for-x-axis-when-there-is-no-data/m-p/394122#M565826</guid>
      <dc:creator />
      <dc:date>2012-11-30T09:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Show 0 for x-axis when there is no data</title>
      <link>https://community.qlik.com/t5/QlikView/Show-0-for-x-axis-when-there-is-no-data/m-p/394123#M565827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try de-selecting "Suppress Zero-values" on presentation tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flipside&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 10:11:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-0-for-x-axis-when-there-is-no-data/m-p/394123#M565827</guid>
      <dc:creator>flipside</dc:creator>
      <dc:date>2012-11-30T10:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Show 0 for x-axis when there is no data</title>
      <link>https://community.qlik.com/t5/QlikView/Show-0-for-x-axis-when-there-is-no-data/m-p/394124#M565828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tried.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does not work as there is no value at all. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/plain.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 00:52:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-0-for-x-axis-when-there-is-no-data/m-p/394124#M565828</guid>
      <dc:creator />
      <dc:date>2012-12-03T00:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: Show 0 for x-axis when there is no data</title>
      <link>https://community.qlik.com/t5/QlikView/Show-0-for-x-axis-when-there-is-no-data/m-p/394125#M565829</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;Okay, I understand your problem. I agree there should be a setting to allow this - continuous axis doesn't work as you need it - but as there isn't possibly the easiest way is to add the missing data to your tables in the load script. If this isn't possible, the following MIGHT work if the value is held in a table and not part of an aggregated value outside of the load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this as your dimension ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=ValueLoop(min(total ID),max(total ID))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will create a range from the smallest to largest value.&amp;nbsp; You then need to create 4 expressions (although you could possible merge into one once full tested).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. &lt;STRONG&gt;=FieldIndex('ID',ValueLoop(min(total ID),max(total ID))) &lt;/STRONG&gt;- label as Index&lt;/P&gt;&lt;P&gt;2.&lt;STRONG&gt; =concat({1} NumValue,';',ID) &lt;/STRONG&gt;- label as AllValues, where NumValue is the value to plot&lt;/P&gt;&lt;P&gt;3. &lt;STRONG&gt;=subfield(AllValues,';',Index) &lt;/STRONG&gt;- label as IDValue&lt;/P&gt;&lt;P&gt;4. &lt;STRONG&gt;=If(IDValue&amp;gt;0,IDValue,0) &lt;/STRONG&gt;- final value to plot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could then try to merge the expressions, or set the first three to invisible and max Axes to Max(NumValue).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flipside&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT:&lt;/P&gt;&lt;P&gt;The above is probably too complicated - you can do this instead in a single expression ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COUNT:&lt;/P&gt;&lt;P&gt;=sum(IF(ID=ValueLoop(min(total ID),max(total ID)),1,0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM:&lt;/P&gt;&lt;P&gt;=SUM(IF(ID=ValueLoop(min(total ID),max(total ID)),NumValue,0))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 11:36:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-0-for-x-axis-when-there-is-no-data/m-p/394125#M565829</guid>
      <dc:creator>flipside</dc:creator>
      <dc:date>2012-12-03T11:36:03Z</dc:date>
    </item>
  </channel>
</rss>

