<?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 Chart X Axis Values With Non Null Values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Show-Chart-X-Axis-Values-With-Non-Null-Values/m-p/723777#M259686</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;Did you try my reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Sep 2014 10:05:29 GMT</pubDate>
    <dc:creator>PrashantSangle</dc:creator>
    <dc:date>2014-09-30T10:05:29Z</dc:date>
    <item>
      <title>Show Chart X Axis Values With Non Null Values</title>
      <link>https://community.qlik.com/t5/QlikView/Show-Chart-X-Axis-Values-With-Non-Null-Values/m-p/723768#M259677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I get from my database purchases amount and their date (dd/mm/yyyy), in the SQL I add a field named Month (Date_Format(Date),'%m') as Month)&lt;/P&gt;&lt;P&gt;and I have added an inline like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YearNames:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month, Month Name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01, January&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 02, February&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 03, March&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 04, April&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 05, May&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 06, June&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 07, July&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 08, August&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 09, September&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10, October&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11, November&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12, December&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my charts the dimension is [Month Name] to make it more readable, the problem is that all of the months show up (from January to December) even if i have data only for a couple of months .&lt;/P&gt;&lt;P&gt;How can I solve this? (preferably in the chart and not in the script)&lt;/P&gt;&lt;P&gt;Attached is a simplified case of my problem.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, I can't suppress 0 values because some of my inputs might be 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;EDIT&lt;/STRONG&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;&lt;SPAN style="font-size: 13.63636302948px; line-height: 1.5em;"&gt;I've tried a different approach ins&lt;SPAN style="color: #575757;"&gt;pired by &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="2991" data-externalid="" data-presence="null" data-userid="26418" data-username="tresesco" href="https://community.qlik.com/people/tresesco" style="padding: 0 3px 0 0; font-weight: inherit; font-style: inherit; font-size: 1.1em; font-family: inherit; color: #3778c7;"&gt;&lt;SPAN style="color: #575757;"&gt;tresesc's&lt;/SPAN&gt;&lt;/A&gt; co&lt;/SPAN&gt;mment:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;I do need both the date and the month name from the DB, and I want to be able to choose by date, week number, month name and quarter so I did the following:&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;in the select statement for the actual data, one of the things I selected was:&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;DATE_FORMAT(DateColumn, '%d/%m/%Y') AS Date&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;And at then I've added a new select:&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;SELECT DISTINCT&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE_FORMAT(&lt;SPAN style="font-size: 13.63636302948px;"&gt;DateColumn&lt;/SPAN&gt;, '%d/%m/%Y') AS Date,&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE_FORMAT(&lt;SPAN style="font-size: 13.63636302948px;"&gt;DateColumn&lt;/SPAN&gt;, '%m') AS Month,&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MONTHNAME(&lt;SPAN style="font-size: 13.63636302948px;"&gt;DateColumn)&lt;/SPAN&gt; AS 'Month Name',&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; QUARTER(&lt;SPAN style="font-size: 13.63636302948px;"&gt;DateColumn&lt;/SPAN&gt;) AS Quarter,&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; YEAR(&lt;SPAN style="font-size: 13.63636302948px;"&gt;DateColumn&lt;/SPAN&gt;) AS Year,&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CONCAT('W', DATE_FORMAT(&lt;SPAN style="font-size: 13.63636302948px;"&gt;DateColumn&lt;/SPAN&gt;, '%u')) AS weekNum&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DB&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;It solved the current problem where months that are not in the data but are in the inline appear, but it had created a new one: now the chart shows the following&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;&lt;IMG __jive_id="67945" alt="Capture.PNG.png" class="jive-image jiveImage" src="https://community.qlik.com/legacyfs/online/67945_Capture.PNG.png" /&gt;&lt;BR /&gt;where the last indicator is '-' (null).&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;What can I do about it?&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 07:36:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-Chart-X-Axis-Values-With-Non-Null-Values/m-p/723768#M259677</guid>
      <dc:creator />
      <dc:date>2014-09-30T07:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Show Chart X Axis Values With Non Null Values</title>
      <link>https://community.qlik.com/t5/QlikView/Show-Chart-X-Axis-Values-With-Non-Null-Values/m-p/723769#M259678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at calculated Dimension&lt;/P&gt;&lt;P&gt;=if(Amount&amp;gt;=0,[Month Name])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ASHFAQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 07:44:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-Chart-X-Axis-Values-With-Non-Null-Values/m-p/723769#M259678</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-09-30T07:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Show Chart X Axis Values With Non Null Values</title>
      <link>https://community.qlik.com/t5/QlikView/Show-Chart-X-Axis-Values-With-Non-Null-Values/m-p/723770#M259679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are only bothered about getting the monthnames, better option would be like:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="67938" alt="Screen Shot 09-30-14 at 01.15 PM.PNG.png" class="jive-image" src="/legacyfs/online/67938_Screen Shot 09-30-14 at 01.15 PM.PNG.png" style="width: 620px; height: 222px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: You can set the &lt;STRONG&gt;MonthNames&lt;/STRONG&gt; variables to get the full names as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 07:47:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-Chart-X-Axis-Values-With-Non-Null-Values/m-p/723770#M259679</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-09-30T07:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Show Chart X Axis Values With Non Null Values</title>
      <link>https://community.qlik.com/t5/QlikView/Show-Chart-X-Axis-Values-With-Non-Null-Values/m-p/723771#M259680</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;Try this with calculated Dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(len(trim(Amount))&amp;gt;0,[Month Name])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(not isnull(Amount),[Month Name])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 07:47:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-Chart-X-Axis-Values-With-Non-Null-Values/m-p/723771#M259680</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-09-30T07:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: Show Chart X Axis Values With Non Null Values</title>
      <link>https://community.qlik.com/t5/QlikView/Show-Chart-X-Axis-Values-With-Non-Null-Values/m-p/723772#M259681</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;Can you close this thread by selecting appropriate answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ASHFAQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 09:37:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-Chart-X-Axis-Values-With-Non-Null-Values/m-p/723772#M259681</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-09-30T09:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Show Chart X Axis Values With Non Null Values</title>
      <link>https://community.qlik.com/t5/QlikView/Show-Chart-X-Axis-Values-With-Non-Null-Values/m-p/723773#M259682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Not yet, I am currently trying to implement the suggestions you've given, but it has some problem i'm trying to fix.&lt;/P&gt;&lt;P&gt;I'll make sure to close the tread when the problem is solved.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 09:40:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-Chart-X-Axis-Values-With-Non-Null-Values/m-p/723773#M259682</guid>
      <dc:creator />
      <dc:date>2014-09-30T09:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Show Chart X Axis Values With Non Null Values</title>
      <link>https://community.qlik.com/t5/QlikView/Show-Chart-X-Axis-Values-With-Non-Null-Values/m-p/723774#M259683</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;When you add calculated dimension.&lt;/P&gt;&lt;P&gt;After that check supress when value is null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 09:50:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-Chart-X-Axis-Values-With-Non-Null-Values/m-p/723774#M259683</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-09-30T09:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Show Chart X Axis Values With Non Null Values</title>
      <link>https://community.qlik.com/t5/QlikView/Show-Chart-X-Axis-Values-With-Non-Null-Values/m-p/723775#M259684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;I've tried a different approach inspired by your comment:&lt;/P&gt;&lt;P&gt;I do need both the date and the month name from the DB, and I want to be able to choose by date, week number, month name and quarter so I did the following:&lt;/P&gt;&lt;P&gt;in the select statement for the actual data, one of the things I selected was: &lt;/P&gt;&lt;P&gt;DATE_FORMAT(DateColumn, '%d/%m/%Y') AS Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And at then I've added a new select:&lt;/P&gt;&lt;P&gt;SELECT DISTINCT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE_FORMAT(&lt;SPAN style="font-size: 13.63636302948px;"&gt;DateColumn&lt;/SPAN&gt;, '%d/%m/%Y') AS Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE_FORMAT(&lt;SPAN style="font-size: 13.63636302948px;"&gt;DateColumn&lt;/SPAN&gt;, '%m') AS Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MONTHNAME(&lt;SPAN style="font-size: 13.63636302948px;"&gt;DateColumn)&lt;/SPAN&gt; AS 'Month Name',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; QUARTER(&lt;SPAN style="font-size: 13.63636302948px;"&gt;DateColumn&lt;/SPAN&gt;) AS Quarter,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; YEAR(&lt;SPAN style="font-size: 13.63636302948px;"&gt;DateColumn&lt;/SPAN&gt;) AS Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CONCAT('W', DATE_FORMAT(&lt;SPAN style="font-size: 13.63636302948px;"&gt;DateColumn&lt;/SPAN&gt;, '%u')) AS weekNum&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It solved the current problem where months that are not in the data but are in the inline appear, but it had created a new one: now the chart shows the following&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/67944_Capture.PNG.png" style="max-width: 620px;" /&gt;&lt;BR /&gt;where the last indicator is '-' (null).&lt;/P&gt;&lt;P&gt;What can I do about it?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 09:58:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-Chart-X-Axis-Values-With-Non-Null-Values/m-p/723775#M259684</guid>
      <dc:creator />
      <dc:date>2014-09-30T09:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Show Chart X Axis Values With Non Null Values</title>
      <link>https://community.qlik.com/t5/QlikView/Show-Chart-X-Axis-Values-With-Non-Null-Values/m-p/723776#M259685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the dimensions tab, check 'Supress When Value is Null'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 10:03:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-Chart-X-Axis-Values-With-Non-Null-Values/m-p/723776#M259685</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-09-30T10:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Show Chart X Axis Values With Non Null Values</title>
      <link>https://community.qlik.com/t5/QlikView/Show-Chart-X-Axis-Values-With-Non-Null-Values/m-p/723777#M259686</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;Did you try my reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 10:05:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-Chart-X-Axis-Values-With-Non-Null-Values/m-p/723777#M259686</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-09-30T10:05:29Z</dc:date>
    </item>
  </channel>
</rss>

