<?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: Linking YearMonth from Data table to Master Calendar in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Linking-YearMonth-from-Data-table-to-Master-Calendar/m-p/56157#M787610</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have now solved the issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I put Date(YearMonth, 'YYYYMM') as YearMonth in the main table and it now works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for triggering me to check that&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Feb 2018 09:41:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-02-21T09:41:17Z</dc:date>
    <item>
      <title>Linking YearMonth from Data table to Master Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-YearMonth-from-Data-table-to-Master-Calendar/m-p/56154#M787607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having an issue linking YearMonth from my Data Table to my Master Calendar.&lt;/P&gt;&lt;P&gt;I have data for each month from 201701 to 201712, however I would like calendar to go from 201701 to 202012.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have got this far. You'll see that for the months where I have data, it has repeated the months, one with the data matching and one with 0. Does anyone know how I can prevent this so there is a simple link that shows a flow of dates from 2017 to 2020 where data aligns to its according date.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="193938" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/193938_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my calendar script:&lt;/P&gt;&lt;P&gt;MinMaxDate:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Peek('YearMonth',0,'Employee Details') as MinDate,&lt;/P&gt;&lt;P&gt;Date('31/12/2020','YYYYMM') as MaxDate&lt;/P&gt;&lt;P&gt;AutoGenerate 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vMinDate = NUM(PEEK('MinDate',0,'MinMaxDate'));&lt;/P&gt;&lt;P&gt;Let vMaxDate = NUM(PEEK('MaxDate',0,'MinMaxDate'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendar:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Month(TempDate) as Month,&lt;/P&gt;&lt;P&gt;Date(TempDate) as Date,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Year(TempDate) &amp;amp; Num(Month(TempDate), '00') as YearMonth,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Year(TempDate) as Year;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; $(vMinDate) + IterNo() - 1 as TempDate&lt;/P&gt;&lt;P&gt;AutoGenerate 1&lt;/P&gt;&lt;P&gt;While $(vMinDate) + IterNo() - 1 &amp;lt;= $(vMaxDate);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-YearMonth-from-Data-table-to-Master-Calendar/m-p/56154#M787607</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Linking YearMonth from Data table to Master Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-YearMonth-from-Data-table-to-Master-Calendar/m-p/56155#M787608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How is YearMonth created in your main table? Is it possible that it is an actual date vs the yearmonth in your calendar is a text -&amp;gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;Year(TempDate) &amp;amp; Num(Month(TempDate), '00') as YearMonth,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2018 17:11:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-YearMonth-from-Data-table-to-Master-Calendar/m-p/56155#M787608</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-20T17:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Linking YearMonth from Data table to Master Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-YearMonth-from-Data-table-to-Master-Calendar/m-p/56156#M787609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;During the extract phase YearMonth is created as a date field I think:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(AddMonths(Today(),-1),'YYYYMM') as YearMonth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ignore the addmonth bit &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;Does this mean in the calendar I need to make YearMonth as a date, if so do you know the syntax to do so that will match it? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2018 09:28:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-YearMonth-from-Data-table-to-Master-Calendar/m-p/56156#M787609</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-21T09:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Linking YearMonth from Data table to Master Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-YearMonth-from-Data-table-to-Master-Calendar/m-p/56157#M787610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have now solved the issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I put Date(YearMonth, 'YYYYMM') as YearMonth in the main table and it now works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for triggering me to check that&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2018 09:41:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-YearMonth-from-Data-table-to-Master-Calendar/m-p/56157#M787610</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-21T09:41:17Z</dc:date>
    </item>
  </channel>
</rss>

