<?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: Calandar in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calandar/m-p/963483#M952897</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simon,&lt;/P&gt;&lt;P&gt;Do the two date fields in your tables have the same meaning? Is the Sales table referred to in your script the first table, the second table or a different table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the date fields mean different things (eg. Order received date, Dispatch date, Invoice date, etc.) then you can't associate them and they should each have their own master calendar rather than sharing one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Nov 2015 21:09:55 GMT</pubDate>
    <dc:creator>effinty2112</dc:creator>
    <dc:date>2015-11-23T21:09:55Z</dc:date>
    <item>
      <title>Calandar</title>
      <link>https://community.qlik.com/t5/QlikView/Calandar/m-p/963481#M952894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two tables with&amp;nbsp; Time Information as Follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first table has a column named &lt;STRONG&gt;Period &lt;/STRONG&gt;and the dates start from 4/8/2010 till 11/23/2015&lt;/P&gt;&lt;P&gt;The second table has a column named &lt;STRONG&gt;Date&lt;/STRONG&gt; and the dates start from 11/1/2014 till 11/23/2015&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first thing I did was change the &lt;STRONG&gt;Date&lt;/STRONG&gt; name to Period and then create the calendar script as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendar:&lt;/P&gt;&lt;P&gt;LOAD DISTINCT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date ( Period) as Period,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year (Period) as Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month (Period) as Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date (Monthstart (Period), 'MM - YYYY') as YearMonth,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Q' &amp;amp; Ceil (Month(Period)/3 as Quarter,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dual (Year(Period) &amp;amp; '-Q' &amp;amp; Ceil (Month(Period)/3), Year(Period) &amp;amp; Ceil (Month(Period)/3) as YearQrt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESIDENT Sales;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works pretty good, but my problem is each time a I select &lt;STRONG&gt;Feb&lt;/STRONG&gt; it displays no data for information relating to the second table. So I don't know what is going wrong. Please I will appreciate any help to resolve this issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 12:35:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calandar/m-p/963481#M952894</guid>
      <dc:creator />
      <dc:date>2015-11-23T12:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calandar</title>
      <link>https://community.qlik.com/t5/QlikView/Calandar/m-p/963482#M952896</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;&lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-8843" title="https://community.qlik.com/docs/DOC-8843"&gt;https://community.qlik.com/docs/DOC-8843&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please chk above lnk&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 17:04:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calandar/m-p/963482#M952896</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2015-11-23T17:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calandar</title>
      <link>https://community.qlik.com/t5/QlikView/Calandar/m-p/963483#M952897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simon,&lt;/P&gt;&lt;P&gt;Do the two date fields in your tables have the same meaning? Is the Sales table referred to in your script the first table, the second table or a different table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the date fields mean different things (eg. Order received date, Dispatch date, Invoice date, etc.) then you can't associate them and they should each have their own master calendar rather than sharing one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 21:09:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calandar/m-p/963483#M952897</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2015-11-23T21:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: Calandar</title>
      <link>https://community.qlik.com/t5/QlikView/Calandar/m-p/963484#M952898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Best practice dictates that your calendar should have the entire span of dates from any table linking to it. Furthermore it should contain all dates in that span. (The probable cause of not seeing any Feb in the second table is that no dates within February corresponds between the two tables whereas for the other months there are at least one corresponding day within each month)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a simple Calendar script that might do the trick for you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MinMaxPeriod:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Min( Period ) AS MinPer , Max( Period ) AS MaxPer&lt;/P&gt;&lt;P&gt;RESIDENT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vMinPer = Peek('MinPer');&lt;/P&gt;&lt;P&gt;vMaxPer = Peek('MaxPer');&lt;/P&gt;&lt;P&gt;vNumDays = vMaxPer - vMinPer + 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendar:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD DISTINCT&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date ( Period) as Period,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year (Period) as Year,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month (Period) as Month,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date (Monthstart (Period), 'MM - YYYY') as YearMonth,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Q' &amp;amp; Ceil (Month(Period)/3 as Quarter,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dual (Year(Period) &amp;amp; '-Q' &amp;amp; Ceil (Month(Period)/3), Year(Period) &amp;amp; Ceil (Month(Period)/3) as YearQrt&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date( $(vMinPer) + RecNo() - 1 ) AS Period&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;AUTOGENERATE&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(vNumDays);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vMinPer = Null();&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vMaxPer = Null();&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vNumDays = Null();&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 23:19:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calandar/m-p/963484#M952898</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-11-23T23:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Calandar</title>
      <link>https://community.qlik.com/t5/QlikView/Calandar/m-p/963485#M952899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Petter,&lt;/P&gt;&lt;P&gt;Thanks alot for the calendar script. It did do the trick. I really appreciate that thanks alot.&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 07:58:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calandar/m-p/963485#M952899</guid>
      <dc:creator />
      <dc:date>2015-11-24T07:58:23Z</dc:date>
    </item>
  </channel>
</rss>

