<?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 Static min &amp; max for dimension on chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Static-min-max-for-dimension-on-chart/m-p/237964#M88948</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like a combination of the two approaches may be best, and for performance, you might want to load the calculated dimension as a real dimension. See attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 May 2010 19:27:18 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2010-05-17T19:27:18Z</dc:date>
    <item>
      <title>Static min &amp; max for dimension on chart</title>
      <link>https://community.qlik.com/t5/QlikView/Static-min-max-for-dimension-on-chart/m-p/237955#M88939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I have the following dimension in my load script:&lt;/P&gt;&lt;P&gt;TIME(Timestamp, 'hh') &amp;amp; ':00-' &amp;amp; TIME(Timestamp + (1/24), 'hh') &amp;amp; ':00' AS HOUR&lt;/P&gt;&lt;P&gt;which produces 08:00-09:00 (for sales between 08:00 and 08:59), 09:00-10:00 (for sales between 09:00 and 09:59) etc.&lt;/P&gt;&lt;P&gt;I would like to fix the dimension axis on my chart to display 08:00-09:00 to 18:00-19:00 (opening times only) as there are only minor sales outside of this period that I do not want displayed on the chart.&lt;/P&gt;&lt;P&gt;Currently my chart looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-1599_sourceID:1599" /&gt;&lt;/P&gt;&lt;P&gt;I would like the graph to display just the boxed area.&lt;/P&gt;&lt;P&gt;I've tried adjusting the &lt;I style="mso-bidi-font-style: normal;"&gt;Static min&lt;/I&gt; and &lt;I style="mso-bidi-font-style: normal;"&gt;Static max&lt;/I&gt; boxes on the &lt;I style="mso-bidi-font-style: normal;"&gt;Axes&lt;/I&gt; tab in the chart properties but as of yet can't get it to work.&lt;/P&gt;&lt;P&gt;Any ideas would be greatly appreciated as always.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 14:57:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-min-max-for-dimension-on-chart/m-p/237955#M88939</guid>
      <dc:creator />
      <dc:date>2010-05-11T14:57:09Z</dc:date>
    </item>
    <item>
      <title>Static min &amp; max for dimension on chart</title>
      <link>https://community.qlik.com/t5/QlikView/Static-min-max-for-dimension-on-chart/m-p/237956#M88940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try adding a calculated dimension to control the times displayed in the axis.&lt;/P&gt;&lt;P&gt;Something like: =if(Hour&amp;gt;=08:00 and Hour&amp;lt;=19:00,Hour)&lt;/P&gt;&lt;P&gt;You may need to fiddle with the syntax as the dimension won't be recognised as a number but that should be easy enough.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 15:07:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-min-max-for-dimension-on-chart/m-p/237956#M88940</guid>
      <dc:creator>matt_crowther</dc:creator>
      <dc:date>2010-05-11T15:07:24Z</dc:date>
    </item>
    <item>
      <title>Static min &amp; max for dimension on chart</title>
      <link>https://community.qlik.com/t5/QlikView/Static-min-max-for-dimension-on-chart/m-p/237957#M88941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi APS&lt;/P&gt;&lt;P&gt;So you want the line to start with the last 0 hour before you have values but ignore the succeeding 0 values?&lt;/P&gt;&lt;P&gt;Can you set the starting hour to a very small value (0.01) and suppress zero values in the presentation setting?&lt;/P&gt;&lt;P&gt;Juerg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 16:21:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-min-max-for-dimension-on-chart/m-p/237957#M88941</guid>
      <dc:creator />
      <dc:date>2010-05-11T16:21:27Z</dc:date>
    </item>
    <item>
      <title>Static min &amp; max for dimension on chart</title>
      <link>https://community.qlik.com/t5/QlikView/Static-min-max-for-dimension-on-chart/m-p/237958#M88942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Juerg Maier JmiD GmbH Schweiz wrote:&lt;BR /&gt;Hi APS&lt;BR /&gt;So you want the line to start with the last 0 hour before you have values but ignore the succeeding 0 values?&lt;BR /&gt;Can you set the starting hour to a very small value (0.01) and suppress zero values in the presentation setting?&lt;BR /&gt;Juerg&amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi, I want to fix the dimension axis so that it displays sales between the hours of 08:00-19:00.&lt;/P&gt;&lt;P&gt;Although I have created the HOUR field (see original post), I also have the Timestamp field in my document which is in the following date format 25/10/2009 15:10:25.&lt;/P&gt;&lt;P&gt;I've tried fixing the min value with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=DATE(RIGHT(TIMESTAMP, 8), 'hh:mm:ss') = '08:00:00'&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;but it didn't work. The chart simply displays: &lt;EM&gt;No numeric values on x-axix&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 16:40:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-min-max-for-dimension-on-chart/m-p/237958#M88942</guid>
      <dc:creator />
      <dc:date>2010-05-11T16:40:33Z</dc:date>
    </item>
    <item>
      <title>Static min &amp; max for dimension on chart</title>
      <link>https://community.qlik.com/t5/QlikView/Static-min-max-for-dimension-on-chart/m-p/237959#M88943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;If you know which hours you want limit the data in the load?&lt;/P&gt;&lt;P&gt;Juerg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 16:48:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-min-max-for-dimension-on-chart/m-p/237959#M88943</guid>
      <dc:creator />
      <dc:date>2010-05-11T16:48:33Z</dc:date>
    </item>
    <item>
      <title>Static min &amp; max for dimension on chart</title>
      <link>https://community.qlik.com/t5/QlikView/Static-min-max-for-dimension-on-chart/m-p/237960#M88944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Juerg Maier JmiD GmbH Schweiz wrote:&lt;BR /&gt;Hi&lt;BR /&gt;If you know which hours you want limit the data in the load?&lt;BR /&gt;Juerg&amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Juerg,&lt;/P&gt;&lt;P&gt;I need to bring in all the data in the load but for display purposes limit the dimension axis on the graph. Otherwise I would do as you suggest and limit the load.&lt;/P&gt;&lt;P&gt;Thanks for the responses.&lt;/P&gt;&lt;P&gt;APS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 16:53:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-min-max-for-dimension-on-chart/m-p/237960#M88944</guid>
      <dc:creator />
      <dc:date>2010-05-11T16:53:10Z</dc:date>
    </item>
    <item>
      <title>Static min &amp; max for dimension on chart</title>
      <link>https://community.qlik.com/t5/QlikView/Static-min-max-for-dimension-on-chart/m-p/237961#M88945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a second table that loads only the data the graph has to show?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 16:56:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-min-max-for-dimension-on-chart/m-p/237961#M88945</guid>
      <dc:creator />
      <dc:date>2010-05-11T16:56:17Z</dc:date>
    </item>
    <item>
      <title>Static min &amp; max for dimension on chart</title>
      <link>https://community.qlik.com/t5/QlikView/Static-min-max-for-dimension-on-chart/m-p/237962#M88946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your field is a TEXT field. It needs to be a NUMERIC field to use a static min and max. An easy way to do that is to use the dual() function:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;dual(time(Timestamp,'hh')&amp;amp;':00-'&amp;amp;time(Timestamp+1/24,'hh')&amp;amp;':00'),floor(frac(Timestamp)*24)) as HOUR&lt;/P&gt;&lt;P&gt;Frac(Timstamp) eliminates the days. Multiplying by 24 gives you the hour. The fractional part is then the minutes and seconds. Floor removes the minutes and seconds, leaving you only the hour. Set your static min to 7, and your static max to 18 (not 19, because you actually only want through 18:59:59.9999 if I understand, and that will be floored to 18).&lt;/P&gt;&lt;P&gt;Matt Crowther's solution should work as well, with the possible drawback that calculated dimensions can sometimes be slow.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 20:07:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-min-max-for-dimension-on-chart/m-p/237962#M88946</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-05-11T20:07:43Z</dc:date>
    </item>
    <item>
      <title>Static min &amp; max for dimension on chart</title>
      <link>https://community.qlik.com/t5/QlikView/Static-min-max-for-dimension-on-chart/m-p/237963#M88947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;John Witherspoon wrote:&lt;BR /&gt;Your field is a TEXT field. It needs to be a NUMERIC field to use a static min and max. An easy way to do that is to use the dual() function:&lt;BR /&gt;dual(time(Timestamp,'hh')&amp;amp;':00-'&amp;amp;time(Timestamp+1/24,'hh')&amp;amp;':00'),floor(frac(Timestamp)*24)) as HOUR&lt;BR /&gt;Frac(Timstamp) eliminates the days. Multiplying by 24 gives you the hour. The fractional part is then the minutes and seconds. Floor removes the minutes and seconds, leaving you only the hour. Set your static min to 7, and your static max to 18 (not 19, because you actually only want through 18:59:59.9999 if I understand, and that will be floored to 18).&lt;BR /&gt;Matt Crowther's solution should work as well, with the possible drawback that calculated dimensions can sometimes be slow.&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;John, thanks for the response.&lt;/P&gt;&lt;P&gt;I've created a new numeric field based on TIMESTAMP (as you suggested) but it results in some of the values falling into the wrong category. For example, 06:00-07:00 now includes values between 06:00-07:15. Also, the dimension axis now displays just a number e.g. 10 rather than 10:00-11:00.&lt;/P&gt;&lt;P&gt;I'll continue to investigate a solution using both your suggestion and also Matt Crowther's (although I can't get that to work either).&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;APS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 May 2010 13:41:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-min-max-for-dimension-on-chart/m-p/237963#M88947</guid>
      <dc:creator />
      <dc:date>2010-05-17T13:41:39Z</dc:date>
    </item>
    <item>
      <title>Static min &amp; max for dimension on chart</title>
      <link>https://community.qlik.com/t5/QlikView/Static-min-max-for-dimension-on-chart/m-p/237964#M88948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like a combination of the two approaches may be best, and for performance, you might want to load the calculated dimension as a real dimension. See attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 May 2010 19:27:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-min-max-for-dimension-on-chart/m-p/237964#M88948</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-05-17T19:27:18Z</dc:date>
    </item>
    <item>
      <title>Static min &amp; max for dimension on chart</title>
      <link>https://community.qlik.com/t5/QlikView/Static-min-max-for-dimension-on-chart/m-p/237965#M88949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;John Witherspoon wrote:&lt;BR /&gt;Looks like a combination of the two approaches may be best, and for performance, you might want to load the calculated dimension as a real dimension. See attached. &amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Brilliant, thanks for your help.&lt;/P&gt;&lt;P&gt;APS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 10:42:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-min-max-for-dimension-on-chart/m-p/237965#M88949</guid>
      <dc:creator />
      <dc:date>2010-05-18T10:42:17Z</dc:date>
    </item>
  </channel>
</rss>

