<?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: Limit date values on continuous x-axis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Limit-date-values-on-continuous-x-axis/m-p/377957#M573030</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lars,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think a chart with a continuous axis is most appropriate here. Try instead to limit your expression results to the months you want to show.&lt;/P&gt;&lt;P&gt;You can use a calculated dimension for that, or by applying a set expression to each aggregation function in your expressions, the set expression should look like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Sum(&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;{&amp;lt;TWELVE_MONTH_ROLLING.NumDate = {"&amp;gt;=$(=num(addmonths(max(TWELVE_MONTH_ROLLING.NumDate),-2)))"} &amp;gt;}&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[TWELVE_MONTH_ROLLING.Net Sales (consolidated)] )&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also attached,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Aug 2012 09:42:43 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2012-08-15T09:42:43Z</dc:date>
    <item>
      <title>Limit date values on continuous x-axis</title>
      <link>https://community.qlik.com/t5/QlikView/Limit-date-values-on-continuous-x-axis/m-p/377956#M573029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having a problem with a bar/line chart that shows 2 expressions by month.&lt;/P&gt;&lt;P&gt;Since the original document has more than 24 months, i want to limit it in a way that only the last 6 months will be displayed in the chart.&lt;/P&gt;&lt;P&gt;The only way i found to achieve that is to check the option "continuous" in the "Axes" dialogue because then it is possible to define "Static Min/Max" values.&lt;/P&gt;&lt;P&gt;The problem is, if I do so, other date values, that does not exist in my data are being displayed as well and that the bar is somehow cut off strangely (see attached example file).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have an idea of how to set that up correctly so that only the last 2 Months are displayed in the chart?&lt;/P&gt;&lt;P&gt;And how can I use the "static step" field if i have dates as a dimension?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lars&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2012 09:29:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limit-date-values-on-continuous-x-axis/m-p/377956#M573029</guid>
      <dc:creator />
      <dc:date>2012-08-15T09:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Limit date values on continuous x-axis</title>
      <link>https://community.qlik.com/t5/QlikView/Limit-date-values-on-continuous-x-axis/m-p/377957#M573030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lars,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think a chart with a continuous axis is most appropriate here. Try instead to limit your expression results to the months you want to show.&lt;/P&gt;&lt;P&gt;You can use a calculated dimension for that, or by applying a set expression to each aggregation function in your expressions, the set expression should look like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Sum(&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;{&amp;lt;TWELVE_MONTH_ROLLING.NumDate = {"&amp;gt;=$(=num(addmonths(max(TWELVE_MONTH_ROLLING.NumDate),-2)))"} &amp;gt;}&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[TWELVE_MONTH_ROLLING.Net Sales (consolidated)] )&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also attached,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2012 09:42:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limit-date-values-on-continuous-x-axis/m-p/377957#M573030</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-08-15T09:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Limit date values on continuous x-axis</title>
      <link>https://community.qlik.com/t5/QlikView/Limit-date-values-on-continuous-x-axis/m-p/377958#M573031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the quick response!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code you suggested actually does the trick in my example document.&lt;/P&gt;&lt;P&gt;But unfortunately in the real document it doesn't. I suspect that is because there I use the function "accumulate 12 steps back" to build a 12 months rolling diagram.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that I only want 6 Months in the chart but I need 6 months back plus another 12 months back for the correct calculation of the expression's value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2012 10:30:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limit-date-values-on-continuous-x-axis/m-p/377958#M573031</guid>
      <dc:creator />
      <dc:date>2012-08-15T10:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Limit date values on continuous x-axis</title>
      <link>https://community.qlik.com/t5/QlikView/Limit-date-values-on-continuous-x-axis/m-p/377959#M573032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead using the chart accumulation property, you can do the accumulation in the expression itself, using advanced aggregation, maybe like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Sum(&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;{&amp;lt;TWELVE_MONTH_ROLLING.NumDate = {"&amp;gt;=$(=num(addmonths(max(TWELVE_MONTH_ROLLING.NumDate),-2)))"} &amp;gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;aggr(rangesum(above(sum({1}[TWELVE_MONTH_ROLLING.Net Sales (consolidated)]),0,12 )),TWELVE_MONTH_ROLLING.MonthYear)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also attached.&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2012 11:44:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limit-date-values-on-continuous-x-axis/m-p/377959#M573032</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-08-15T11:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Limit date values on continuous x-axis</title>
      <link>https://community.qlik.com/t5/QlikView/Limit-date-values-on-continuous-x-axis/m-p/377960#M573033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to achieve something similar, but with data broken down in more detail (per item number, customer order lines and dates).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to create a rolling week aggregation like you have created above for this data set? Attached you find my file. The top graph represent what I want to achieve, but I only want to see a limited date range in the graph. The grey line is my attempt, but it is clearly not correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you can help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks alot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 10:41:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limit-date-values-on-continuous-x-axis/m-p/377960#M573033</guid>
      <dc:creator />
      <dc:date>2013-02-28T10:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Limit date values on continuous x-axis</title>
      <link>https://community.qlik.com/t5/QlikView/Limit-date-values-on-continuous-x-axis/m-p/1718303#M573034</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;New user here, have essentially the same need as the original poster, but using set expressions on each of the measures is not really a feasible approach, as the goal for the graph is for the analyst to be able to swap in and out different measures, so it would be a real hassle to have to apply set expressions every time. Is there really not a way to simply set a max/min on the X-axis in line graphs?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 13:56:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limit-date-values-on-continuous-x-axis/m-p/1718303#M573034</guid>
      <dc:creator>WeroGreg</dc:creator>
      <dc:date>2020-06-12T13:56:02Z</dc:date>
    </item>
  </channel>
</rss>

