<?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: DateKey Column in Calendar Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/DateKey-Column-in-Calendar-Table/m-p/1170773#M911630</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;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/STRONG&gt;DateKey column in Calendar table is numeric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px;"&gt;Claim_Creation_Date as &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-style: inherit; font-weight: inherit;"&gt;DateKey" as mentioned above in your response will not create numeric Datekey column, it should be numeric column and consist of subset of values available in DateKey column in Calendar table so that I can link both tables &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Jun 2016 15:54:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-06-10T15:54:16Z</dc:date>
    <item>
      <title>DateKey Column in Calendar Table</title>
      <link>https://community.qlik.com/t5/QlikView/DateKey-Column-in-Calendar-Table/m-p/1170771#M911628</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;I have "CLAIM" table with &lt;SPAN style="font-size: 13.3333px;"&gt;column &lt;/SPAN&gt; "&lt;SPAN style="font-size: 13.3333px;"&gt;Claim_Creation_Date&lt;/SPAN&gt;" , I have created Calendar table based on below script using "Claim_creation_date" and this table has DateKey column&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to link Calendar table with CLAIM table based on DateKey but CLAIM table does not have DateKey column, please suggest how to create DateKey column in CLAIM table so that I can link Calendar Table with CLAIM based on DateKey&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;QuartersMap:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MAPPING LOAD * Inline [&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Month, Q&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;1, Q1&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2, Q1&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;3, Q1&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;4, Q2&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;5, Q2&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;6, Q2&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;7, Q3&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;8, Q3&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;9, Q3&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;10, Q4&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;11, Q4&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;12, Q4&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;];&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;MonthMap:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Mapping LOAD * Inline [&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MonthNo, LongMonth&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;1, January&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2, February&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;3, March&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;4, April&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;5, May&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;6, June&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;7, July&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;8, August&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;9, September&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;10, October&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;11, November&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;12, December&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;];&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Temp:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Load&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;min(Claim_Creation_Date) as minDate, // Replace DateKey with your Date key field&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;max(Claim_Creation_Date) as maxDate // Replace DateKey with your Date key field&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident CLAIM; // Replace SourceTable with the name of the table containing the DateKey field&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Let varMinDate = Num(Peek('minDate', 0, 'Temp'));&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Let varMaxDate = Num(Peek('maxDate', 0, 'Temp'));&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;DROP Table Temp;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;TempCalendar:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;$(varMinDate) + Iterno()-1 As Num,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Date($(varMinDate) + IterNo() - 1) as TempDate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;AutoGenerate 1 While $(varMinDate) + IterNo() -1 &amp;lt;= $(varMaxDate);&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Set vFM = 4 ;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MasterCalendar:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;TempDate AS DateKey, // Replace DateKey with your Date key field&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;week(TempDate) as Week,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Year(TempDate) as Year,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Year(TempDate) -1 as [PriorYear],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Month(TempDate) as Month,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Dual(ApplyMap('MonthMap', Month(TempDate), Null()), Month(TempDate)) as MonthLong,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Day(TempDate) as Day,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;YeartoDate(TempDate)*-1 as CurYTDFlag,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;YeartoDate(TempDate,-1)*-1 as LastYTDFlag,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;inyear(TempDate, Monthstart($(varMaxDate)),-1) as RC12,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;date(monthstart(TempDate), 'MMM-YYYY') as MonthYear,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;ApplyMap('QuartersMap', month(TempDate), Null()) as Quarter,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Week(weekstart(TempDate)) &amp;amp; '-' &amp;amp; WeekYear(TempDate) as WeekYear,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;WeekDay(TempDate) as WeekDay&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;// Fiscal Year fields&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;//Year(TempDate) + If(Month(TempDate)&amp;gt;=$(vFM), 1, 0) As [Fiscal Year],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;//Mod(Month(TempDate)-$(vFM), 12)+1 As [Fiscal Month]&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident TempCalendar&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Order By TempDate ASC;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Drop Table TempCalendar;&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/DateKey-Column-in-Calendar-Table/m-p/1170771#M911628</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: DateKey Column in Calendar Table</title>
      <link>https://community.qlik.com/t5/QlikView/DateKey-Column-in-Calendar-Table/m-p/1170772#M911629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CLAIM:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD AllFields,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Claim_Creation_Date,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Claim_Creation_Date as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;DateKey&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;FROM ....;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then you MasterCalendar Script&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 14:53:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DateKey-Column-in-Calendar-Table/m-p/1170772#M911629</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-10T14:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: DateKey Column in Calendar Table</title>
      <link>https://community.qlik.com/t5/QlikView/DateKey-Column-in-Calendar-Table/m-p/1170773#M911630</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;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/STRONG&gt;DateKey column in Calendar table is numeric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px;"&gt;Claim_Creation_Date as &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-style: inherit; font-weight: inherit;"&gt;DateKey" as mentioned above in your response will not create numeric Datekey column, it should be numeric column and consist of subset of values available in DateKey column in Calendar table so that I can link both tables &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 15:54:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DateKey-Column-in-Calendar-Table/m-p/1170773#M911630</guid>
      <dc:creator />
      <dc:date>2016-06-10T15:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: DateKey Column in Calendar Table</title>
      <link>https://community.qlik.com/t5/QlikView/DateKey-Column-in-Calendar-Table/m-p/1170774#M911631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DateKey may have a numeric representation but it still has a date representation as well. Same is true for the field I created below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;CLAIM:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;LOAD AllFields,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px;"&gt;Claim_Creation_Date,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px;"&gt;Claim_Creation_Date as &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px;"&gt;DateKey&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;FROM ....;&lt;/STRONG&gt;&lt;/SPAN&gt;&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;Unless Claim_Creation_Date is not TimeStamp, the correct association should be made&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 16:35:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DateKey-Column-in-Calendar-Table/m-p/1170774#M911631</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-10T16:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: DateKey Column in Calendar Table</title>
      <link>https://community.qlik.com/t5/QlikView/DateKey-Column-in-Calendar-Table/m-p/1170775#M911632</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;Thanks, I am able to link both tables based on your suggestion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please also suggest the method which I have implemented for creating calendar is correct or not, can I use this method going forward in other projects&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jun 2016 15:40:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DateKey-Column-in-Calendar-Table/m-p/1170775#M911632</guid>
      <dc:creator />
      <dc:date>2016-06-11T15:40:56Z</dc:date>
    </item>
  </channel>
</rss>

