<?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 date range in X Axis Dimension by selected one date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/date-range-in-X-Axis-Dimension-by-selected-one-date/m-p/280476#M499715</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John, your answer was correct,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just found out what I was doing, so let me explain why it did not work immidiately &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;So currently I have this expression - if(GetSelectedCount(Day)&amp;gt; 1,Sum(actual_turnover),Sum({&amp;lt;[created_date]={'&amp;gt;=$(=date(min(&lt;STRONG&gt;created_date&lt;/STRONG&gt;)-30))&amp;lt;=$(=date(max(&lt;STRONG&gt;created_date&lt;/STRONG&gt;)))'}&amp;gt;} actual_turnover))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the &lt;STRONG&gt;created_date &lt;/STRONG&gt;= is being selected by selected a [Day], [Month], [Year] which are assiciated to the created_date HOWEVER, when I add the created_date in the report and I actually selected a particualr date, the chart displays the dates, if I select the day,month and year seperately even though they are associated to the created date, the report will only display one day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So now I am going to find a way how to make it work with the [Day], [Month], [Year]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 May 2011 12:05:03 GMT</pubDate>
    <dc:creator>stevegimbrollmt</dc:creator>
    <dc:date>2011-05-10T12:05:03Z</dc:date>
    <item>
      <title>date range in X Axis Dimension by selected one date</title>
      <link>https://community.qlik.com/t5/QlikView/date-range-in-X-Axis-Dimension-by-selected-one-date/m-p/280469#M499708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a line chart and I want that when i select lets say 15-04-2011, in the line chart, I actually get a range from 15-03-2011 to 15-04-2011 rather than showing just one date selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried doing something with the calculated dimension but seems its not workign and also the Min/Max Scale expression only work for the Y Axis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 14:06:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-range-in-X-Axis-Dimension-by-selected-one-date/m-p/280469#M499708</guid>
      <dc:creator>stevegimbrollmt</dc:creator>
      <dc:date>2011-05-06T14:06:44Z</dc:date>
    </item>
    <item>
      <title>date range in X Axis Dimension by selected one date</title>
      <link>https://community.qlik.com/t5/QlikView/date-range-in-X-Axis-Dimension-by-selected-one-date/m-p/280470#M499709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You would probably be better off using variables than actual selections.&amp;nbsp; Set up one variable called like vMinDate and one called vMaxDate.&amp;nbsp; Make an input box for vMaxDate, and in the variable overview set vMinDate to: =date(vMaxDate-1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in the line chart expression, use set analysis like this:&lt;/P&gt;&lt;P&gt;[code]&lt;/P&gt;&lt;P&gt;{$&amp;lt;[Date]={"&amp;gt;=$(vMinDate) &amp;lt;=$(vMaxDate)"}&amp;gt;}&lt;/P&gt;&lt;P&gt;[/code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you could not set vMinDate to anything and have an input box for both vMinDate and vMaxDate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 14:14:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-range-in-X-Axis-Dimension-by-selected-one-date/m-p/280470#M499709</guid>
      <dc:creator />
      <dc:date>2011-05-06T14:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: date range in X Axis Dimension by selected one date</title>
      <link>https://community.qlik.com/t5/QlikView/date-range-in-X-Axis-Dimension-by-selected-one-date/m-p/280471#M499710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd probably just stick with fields instead of variables.&amp;nbsp; It's very much the same basic idea, though - use set analysis to pretend you selected more dates than you actually selected.&amp;nbsp; Something like this, maybe:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;{&amp;lt;[Date]={"&amp;gt;=$(=date(min(Date)-1) &amp;lt;=$(=date(max(Date))))"}&amp;gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 22:58:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-range-in-X-Axis-Dimension-by-selected-one-date/m-p/280471#M499710</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-05-06T22:58:50Z</dc:date>
    </item>
    <item>
      <title>date range in X Axis Dimension by selected one date</title>
      <link>https://community.qlik.com/t5/QlikView/date-range-in-X-Axis-Dimension-by-selected-one-date/m-p/280472#M499711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for your feedback guys, im gona try it now, sorry for late reply but got stuck on something else, but from &lt;/P&gt;&lt;P&gt;Trent feedback: I understand what you mean but not sure if its exactly what&amp;nbsp; I want but will try it out.&lt;/P&gt;&lt;P&gt;John: thanks as always, to be honest I tried something like that, not sure if the modifier was wrong but will try your sample.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 10:05:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-range-in-X-Axis-Dimension-by-selected-one-date/m-p/280472#M499711</guid>
      <dc:creator>stevegimbrollmt</dc:creator>
      <dc:date>2011-05-09T10:05:14Z</dc:date>
    </item>
    <item>
      <title>date range in X Axis Dimension by selected one date</title>
      <link>https://community.qlik.com/t5/QlikView/date-range-in-X-Axis-Dimension-by-selected-one-date/m-p/280473#M499712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmmm John not sure if I did this correct but in the chart expression I have put this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(GetSelectedCount(Day)&amp;gt; 1,Sum(actual_turnover),Sum({&amp;lt;[created_date]={'&amp;gt;=$(=date(min(created_date)-30))&amp;lt;=$(=date(max(created_date)))'}&amp;gt;} actual_turnover))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My aim is that if I select just 1 day, I want to see a date range of 30 days, if not, it just shows the selected days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks guys!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 10:32:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-range-in-X-Axis-Dimension-by-selected-one-date/m-p/280473#M499712</guid>
      <dc:creator>stevegimbrollmt</dc:creator>
      <dc:date>2011-05-09T10:32:18Z</dc:date>
    </item>
    <item>
      <title>date range in X Axis Dimension by selected one date</title>
      <link>https://community.qlik.com/t5/QlikView/date-range-in-X-Axis-Dimension-by-selected-one-date/m-p/280474#M499713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Double quotes, not single quotes.&amp;nbsp; Other than that it looks right to me, but I could be missing something.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 18:29:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-range-in-X-Axis-Dimension-by-selected-one-date/m-p/280474#M499713</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-05-09T18:29:57Z</dc:date>
    </item>
    <item>
      <title>date range in X Axis Dimension by selected one date</title>
      <link>https://community.qlik.com/t5/QlikView/date-range-in-X-Axis-Dimension-by-selected-one-date/m-p/280475#M499714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-family: Calibri, sans-serif; font-size: 11pt;"&gt;Thanks for your help. It still not working as in, it still shows me selected day only rather than a range of 30 days on the axis.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-family: Calibri, sans-serif; font-size: 11pt;"&gt; I need to find a way how when I select&amp;nbsp; 30-03-2011, on the graph i see displayed dates 01-03-2011,02-03-2011...etc etc till 30-03-2011.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-family: Calibri, sans-serif; font-size: 11pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-family: Calibri, sans-serif; font-size: 11pt;"&gt;Will need to find a way to do it.&amp;nbsp; Thanks again John&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2011 06:20:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-range-in-X-Axis-Dimension-by-selected-one-date/m-p/280475#M499714</guid>
      <dc:creator>stevegimbrollmt</dc:creator>
      <dc:date>2011-05-10T06:20:48Z</dc:date>
    </item>
    <item>
      <title>date range in X Axis Dimension by selected one date</title>
      <link>https://community.qlik.com/t5/QlikView/date-range-in-X-Axis-Dimension-by-selected-one-date/m-p/280476#M499715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John, your answer was correct,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just found out what I was doing, so let me explain why it did not work immidiately &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;So currently I have this expression - if(GetSelectedCount(Day)&amp;gt; 1,Sum(actual_turnover),Sum({&amp;lt;[created_date]={'&amp;gt;=$(=date(min(&lt;STRONG&gt;created_date&lt;/STRONG&gt;)-30))&amp;lt;=$(=date(max(&lt;STRONG&gt;created_date&lt;/STRONG&gt;)))'}&amp;gt;} actual_turnover))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the &lt;STRONG&gt;created_date &lt;/STRONG&gt;= is being selected by selected a [Day], [Month], [Year] which are assiciated to the created_date HOWEVER, when I add the created_date in the report and I actually selected a particualr date, the chart displays the dates, if I select the day,month and year seperately even though they are associated to the created date, the report will only display one day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So now I am going to find a way how to make it work with the [Day], [Month], [Year]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2011 12:05:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-range-in-X-Axis-Dimension-by-selected-one-date/m-p/280476#M499715</guid>
      <dc:creator>stevegimbrollmt</dc:creator>
      <dc:date>2011-05-10T12:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: date range in X Axis Dimension by selected one date</title>
      <link>https://community.qlik.com/t5/QlikView/date-range-in-X-Axis-Dimension-by-selected-one-date/m-p/280477#M499716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, yes, you need to use set analysis to ignore every other date-related field associated with created_date.&amp;nbsp; This is normally done by listing them explicitly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;if(GetSelectedCount(Day)&amp;gt; 1,Sum(actual_turnover),Sum({&amp;lt;[created_date]={"&amp;gt;=$(=date(min(created_date)-30))&amp;lt;=$(=date(max(created_date)))"}&lt;STRONG style="font-size: 12pt;"&gt;,Day=,Month=,Year=&lt;/STRONG&gt;&amp;gt;} actual_turnover))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's also a way to tell QlikView "ignore every field in the calendar table except for created_date", but you'd probably reserve that for if there are a lot of fields in the table to be ignored.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2011 18:39:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-range-in-X-Axis-Dimension-by-selected-one-date/m-p/280477#M499716</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-05-10T18:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: date range in X Axis Dimension by selected one date</title>
      <link>https://community.qlik.com/t5/QlikView/date-range-in-X-Axis-Dimension-by-selected-one-date/m-p/280478#M499717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IMPRESSIVE! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked, am doing more testing but it worked.&amp;nbsp; so when in set analysis you do Field=, that means, exclude those fields im selecting?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks once again John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2011 21:46:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-range-in-X-Axis-Dimension-by-selected-one-date/m-p/280478#M499717</guid>
      <dc:creator>stevegimbrollmt</dc:creator>
      <dc:date>2011-05-10T21:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: date range in X Axis Dimension by selected one date</title>
      <link>https://community.qlik.com/t5/QlikView/date-range-in-X-Axis-Dimension-by-selected-one-date/m-p/280479#M499718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;SteveGImbroll wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so when in set analysis you do Field=, that means, exclude those fields im selecting?&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;Yep, that's what it means.&amp;nbsp; Ignore the selections in that field.&amp;nbsp; Now, it's not exactly a perfect ignore, as it will take into account how those fields affect values in other fields that you may be referencing.&amp;nbsp; But I think that's what we want here, in that if you select a day, month and year, you WANT it to use the matching created_date when calculating your 30-day spread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thinking a little further, I'd think you'd want your if() to be if(created_date,...), though.&amp;nbsp; I'm guessing that "Day" is the day of the month.&amp;nbsp; In and of itself, that's not enough, as you'd also need to select a month and a year.&amp;nbsp; But I'm thinking that doesn't really matter so much as just you've "selected" a single created_date, which you can check by just seeing if it has a value.&amp;nbsp; If it has a value, then only one value is possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2011 21:54:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-range-in-X-Axis-Dimension-by-selected-one-date/m-p/280479#M499718</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-05-10T21:54:06Z</dc:date>
    </item>
    <item>
      <title>date range in X Axis Dimension by selected one date</title>
      <link>https://community.qlik.com/t5/QlikView/date-range-in-X-Axis-Dimension-by-selected-one-date/m-p/280480#M499719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes I have to agree, now that I'm understanding more how it is being interpretted I shall revise my conditions but for this particular need for now its doing the job, but def will fine tune it!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2011 21:58:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-range-in-X-Axis-Dimension-by-selected-one-date/m-p/280480#M499719</guid>
      <dc:creator>stevegimbrollmt</dc:creator>
      <dc:date>2011-05-10T21:58:31Z</dc:date>
    </item>
  </channel>
</rss>

