<?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 Yet Another Calendar Question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Yet-Another-Calendar-Question/m-p/237597#M88650</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply but this was still not what I wanted, The problem was as &lt;STRONG&gt;DAY&lt;/STRONG&gt; is basically a list of all the days in the calendar when you plot this as a Dimension it uses the maximum and minimum to produce the range (when you check show all values) which is needed as not all days have orders.&lt;/P&gt;&lt;P&gt;I have however stumbled on a solution on the &lt;STRONG&gt;Presentation&lt;/STRONG&gt; &lt;STRONG&gt;Tab&lt;/STRONG&gt; there is a section called &lt;STRONG&gt;Dimension&lt;/STRONG&gt; &lt;STRONG&gt;Limitations&lt;/STRONG&gt; so I checked the &lt;STRONG&gt;Max Visible Number (1-100)&lt;/STRONG&gt; and placed the following in the formula &lt;STRONG&gt;DaysInMonth&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Day(MonthEnd(Date)) as &lt;STRONG&gt;DaysInMonth&lt;/STRONG&gt; was added to the Calendar&lt;/P&gt;&lt;P&gt;It now delivers exactly what I wanted&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Nov 2009 16:16:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-11-11T16:16:55Z</dc:date>
    <item>
      <title>Yet Another Calendar Question</title>
      <link>https://community.qlik.com/t5/QlikView/Yet-Another-Calendar-Question/m-p/237595#M88648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paging all experts, I have what I hope is a simple question but it has been bugging me for a while.&lt;/P&gt;&lt;P&gt;I have a need to track revenue and orders over a month by day and produce a chart. Using the Day variable of the following script as the Dimension (with show all Values ticked) on a Line Chart and Accumulating the Expressions the chart works fine....but and you knew it would be there did'nt you....it take the maximum number of days for any month so February shows 31 days as do all the others. How can I get the chart to reflect the correct number of days per month.&lt;/P&gt;&lt;P&gt;Not all days have orders&lt;/P&gt;&lt;P&gt;Calendar:&lt;BR /&gt; LOAD date(date#('3112' &amp;amp; $(vCurrentYear)-1,'DDMMYYYY')+recno(),'DD/MM/YY') as "Date"&lt;BR /&gt; AUTOGENERATE yearend(today())-date#('3112' &amp;amp; $(vCurrentYear)-1,'DDMMYYYY');&lt;/P&gt;&lt;P&gt;LEFT JOIN (Calendar)&lt;BR /&gt;LOAD&lt;BR /&gt; *,&lt;BR /&gt; Year &amp;amp; '-' &amp;amp; Quarter as YearQtr,&lt;BR /&gt; Month &amp;amp; '-' &amp;amp; Day as MonthDay;&lt;BR /&gt;LOAD "Date",&lt;BR /&gt; Date as OrderDate,&lt;BR /&gt; Day(Date) as Day,&lt;BR /&gt; Year(Date) as Year,&lt;BR /&gt; Month(Date) as Month,&lt;BR /&gt; Date(Monthstart(Date), 'MMM-YYYY') as YearMonth,&lt;BR /&gt; Week(Date) as Week,&lt;BR /&gt; Weekday(Date) as Weekday,&lt;BR /&gt; 'Q' &amp;amp; Ceil(Month(Date)/3) as Quarter&lt;BR /&gt;RESIDENT Calendar;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2009 23:31:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Yet-Another-Calendar-Question/m-p/237595#M88648</guid>
      <dc:creator />
      <dc:date>2009-11-10T23:31:04Z</dc:date>
    </item>
    <item>
      <title>Yet Another Calendar Question</title>
      <link>https://community.qlik.com/t5/QlikView/Yet-Another-Calendar-Question/m-p/237596#M88649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Tony,&lt;/P&gt;&lt;P&gt;You may use this temporary calendar:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;TempCalendar:&lt;BR /&gt;LOAD&lt;BR /&gt;$(vFirstValidDate) + Iterno() - 1 as Num,&lt;BR /&gt;Date($(vFirstValidDate) + Iterno() - 1) as TempDate&lt;BR /&gt;AUTOGENERATE 1 WHILE $(vFirstValidDate) + Iterno() - 1 &amp;lt;=$(vLastValidDate);&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Where vFirstValidDate and vLastValidDate are got from your data source or manually LET.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2009 23:59:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Yet-Another-Calendar-Question/m-p/237596#M88649</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2009-11-10T23:59:53Z</dc:date>
    </item>
    <item>
      <title>Yet Another Calendar Question</title>
      <link>https://community.qlik.com/t5/QlikView/Yet-Another-Calendar-Question/m-p/237597#M88650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply but this was still not what I wanted, The problem was as &lt;STRONG&gt;DAY&lt;/STRONG&gt; is basically a list of all the days in the calendar when you plot this as a Dimension it uses the maximum and minimum to produce the range (when you check show all values) which is needed as not all days have orders.&lt;/P&gt;&lt;P&gt;I have however stumbled on a solution on the &lt;STRONG&gt;Presentation&lt;/STRONG&gt; &lt;STRONG&gt;Tab&lt;/STRONG&gt; there is a section called &lt;STRONG&gt;Dimension&lt;/STRONG&gt; &lt;STRONG&gt;Limitations&lt;/STRONG&gt; so I checked the &lt;STRONG&gt;Max Visible Number (1-100)&lt;/STRONG&gt; and placed the following in the formula &lt;STRONG&gt;DaysInMonth&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Day(MonthEnd(Date)) as &lt;STRONG&gt;DaysInMonth&lt;/STRONG&gt; was added to the Calendar&lt;/P&gt;&lt;P&gt;It now delivers exactly what I wanted&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Nov 2009 16:16:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Yet-Another-Calendar-Question/m-p/237597#M88650</guid>
      <dc:creator />
      <dc:date>2009-11-11T16:16:55Z</dc:date>
    </item>
  </channel>
</rss>

