<?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 Stacked gantt bar chart - x-axes value changes when adding expressions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Stacked-gantt-bar-chart-x-axes-value-changes-when-adding/m-p/811902#M286563</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 horizontal bar chart, with project phase dates. When only expressions that affect a certain project are abled, the x-axes is showind dates correctly.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Gantt_Dates.PNG" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/76941_Gantt_Dates.PNG" style="width: 620px; height: 156px;" /&gt;&lt;/P&gt;&lt;P&gt;But when I able expressions that do not concern that particular project (aka returns null) the x-axes values change to numbers.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Gantt_Numbers.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/76942_Gantt_Numbers.PNG" style="width: 620px; height: 153px;" /&gt;&lt;/P&gt;&lt;P&gt;The bars are still "correct" ones but the count is messing up somehow I think. What is causing this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dates are coming from these fields.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Dates_Table.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/76944_Dates_Table.PNG" style="width: 620px; height: 38px;" /&gt;&lt;/P&gt;&lt;P&gt;I have expression for each step like&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RangeMax&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;above&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Opportunity Identification]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),0,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;rowno&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;())) &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// Upper limit&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RangeMax&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Min&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Added Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RangeMax&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;above&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Opportunity Identification]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),1,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;rowno&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()-1))) &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// Lower limit .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 10pt;"&gt;So there is &lt;SPAN style="color: #000000;"&gt;few dozen expressions. The above expressions returns null when either of the fields is empty. I image the reason is in the expressions in some how but I don't know how to fix it. Can I use the alt() function or some other function to make the expression not count when either of the fields is empty for example? Or is the solutions even more simple? My question is, how to make the chart do the calculations so that the end result is showing the x-axes in dates, not numbers?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;I have unchecked the "forced 0" for all expressions, bar offset is min(Date) for some of the expressions - not all. And all expressions have scale static min and static max according to the min([Added Date])-10 and max([Delivery Month])+200.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;Any idea what should I try?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;Thanks for your help!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt;&lt;SPAN style="color: #000000;"&gt;Reg, Heidi&lt;/SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Feb 2015 07:52:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-02-03T07:52:17Z</dc:date>
    <item>
      <title>Stacked gantt bar chart - x-axes value changes when adding expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Stacked-gantt-bar-chart-x-axes-value-changes-when-adding/m-p/811902#M286563</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 horizontal bar chart, with project phase dates. When only expressions that affect a certain project are abled, the x-axes is showind dates correctly.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Gantt_Dates.PNG" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/76941_Gantt_Dates.PNG" style="width: 620px; height: 156px;" /&gt;&lt;/P&gt;&lt;P&gt;But when I able expressions that do not concern that particular project (aka returns null) the x-axes values change to numbers.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Gantt_Numbers.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/76942_Gantt_Numbers.PNG" style="width: 620px; height: 153px;" /&gt;&lt;/P&gt;&lt;P&gt;The bars are still "correct" ones but the count is messing up somehow I think. What is causing this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dates are coming from these fields.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Dates_Table.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/76944_Dates_Table.PNG" style="width: 620px; height: 38px;" /&gt;&lt;/P&gt;&lt;P&gt;I have expression for each step like&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RangeMax&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;above&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Opportunity Identification]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),0,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;rowno&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;())) &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// Upper limit&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RangeMax&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Min&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Added Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RangeMax&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;above&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Opportunity Identification]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),1,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;rowno&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()-1))) &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// Lower limit .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 10pt;"&gt;So there is &lt;SPAN style="color: #000000;"&gt;few dozen expressions. The above expressions returns null when either of the fields is empty. I image the reason is in the expressions in some how but I don't know how to fix it. Can I use the alt() function or some other function to make the expression not count when either of the fields is empty for example? Or is the solutions even more simple? My question is, how to make the chart do the calculations so that the end result is showing the x-axes in dates, not numbers?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;I have unchecked the "forced 0" for all expressions, bar offset is min(Date) for some of the expressions - not all. And all expressions have scale static min and static max according to the min([Added Date])-10 and max([Delivery Month])+200.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;Any idea what should I try?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;Thanks for your help!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt;&lt;SPAN style="color: #000000;"&gt;Reg, Heidi&lt;/SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2015 07:52:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stacked-gantt-bar-chart-x-axes-value-changes-when-adding/m-p/811902#M286563</guid>
      <dc:creator />
      <dc:date>2015-02-03T07:52:17Z</dc:date>
    </item>
  </channel>
</rss>

