<?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 Master Calendar Joining Mutliple Date Fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Master-Calendar-Joining-Mutliple-Date-Fields/m-p/211617#M715436</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jacob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you anyway solve the Problem?? I have a similar problem too..&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;Sravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Jun 2010 13:02:24 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-06-30T13:02:24Z</dc:date>
    <item>
      <title>Master Calendar Joining Mutliple Date Fields</title>
      <link>https://community.qlik.com/t5/QlikView/Master-Calendar-Joining-Mutliple-Date-Fields/m-p/211612#M715430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have found numerous posts discussing this situation I am having and have heard of using Set Analysis to solve this issue. None of this seems to work for me or I am missing how to do this.&lt;/P&gt;&lt;P&gt;I would like to create a master calendar able to connect one or more data table fields together. For example the query I have below contains two different date fields. When I link (LOAD DISTINCT order_date...) to the master calendar my date for the requested_date becomes skewed. It is reducing on order_date, I want just a generic date to be created. I also tried creating a calendar independent of my data, but I do not know how to link it back up to the master calendar since it would have no correlation to my query.&lt;/P&gt;&lt;P&gt;I figure their is an easier way to link these two date fields together, I am just missing it. I would like some suggestions or ideas on how to do this. I would prefer to have one master calendar application for all my QV applications. I would like the linkage to be an outer join not an inner join. Show me all the dates even if 1 of the 3 fields did not have an entry that day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2010 23:43:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-Calendar-Joining-Mutliple-Date-Fields/m-p/211612#M715430</guid>
      <dc:creator />
      <dc:date>2010-01-13T23:43:44Z</dc:date>
    </item>
    <item>
      <title>Master Calendar Joining Mutliple Date Fields</title>
      <link>https://community.qlik.com/t5/QlikView/Master-Calendar-Joining-Mutliple-Date-Fields/m-p/211613#M715431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;deleted&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2010 22:07:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-Calendar-Joining-Mutliple-Date-Fields/m-p/211613#M715431</guid>
      <dc:creator />
      <dc:date>2010-01-14T22:07:28Z</dc:date>
    </item>
    <item>
      <title>Master Calendar Joining Mutliple Date Fields</title>
      <link>https://community.qlik.com/t5/QlikView/Master-Calendar-Joining-Mutliple-Date-Fields/m-p/211614#M715432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After enough messing around. I wound back at the start. Below is the master calendar I ended up using.&lt;/P&gt;&lt;P&gt;Important items I have learn.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Convert all your data to the same format &lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;CONVERT(varchar(23),requested_date,101) AS requested_date,&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;even if&lt;/LI&gt;&lt;LI&gt;Choose a date field with values which fit into the range your desire&lt;/LI&gt;&lt;LI&gt;Call all data fields you want to join the same name.&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2010 22:07:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-Calendar-Joining-Mutliple-Date-Fields/m-p/211614#M715432</guid>
      <dc:creator />
      <dc:date>2010-01-14T22:07:35Z</dc:date>
    </item>
    <item>
      <title>Master Calendar Joining Mutliple Date Fields</title>
      <link>https://community.qlik.com/t5/QlikView/Master-Calendar-Joining-Mutliple-Date-Fields/m-p/211615#M715433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So the above post has brought me much closer to where I want to go but is still not correct. Below is the calendar I use to create the below schema. Currently it is combining data for requested_date which is fine expect for when an event occurs when an order or printed date does not.&lt;/P&gt;&lt;P&gt;Ideally I would like to create a calendar with every date since 2001 and pass in order, requested and printed as variables. I have yet to find a solution like this so I am still hoping something close the below would work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;Temp:&lt;BR /&gt;LOAD&lt;BR /&gt; min(master_date) AS minDate,&lt;BR /&gt; max(master_date) AS maxDate&lt;BR /&gt;RESIDENT&lt;BR /&gt; Backlog;&lt;BR /&gt;LET varMinDate = Num(Peek('minDate', 0, 'Temp'));&lt;BR /&gt;LET varMaxDate = Num(Peek('maxDate', 0, 'Temp'));&lt;BR /&gt;LET vToday = num(today());&lt;BR /&gt;&lt;BR /&gt;DROP TABLE Temp;&lt;BR /&gt;&lt;BR /&gt;//*************** Temporary Calendar ***************&lt;BR /&gt;TempCalendar:&lt;BR /&gt;LOAD&lt;BR /&gt; $(varMinDate) + Iterno() - 1 AS Num,&lt;BR /&gt; date($(varMinDate) + Iterno() - 1) AS TempDate&lt;BR /&gt;AUTOGENERATE 1 WHILE $(varMinDate)+Iterno () -1 &amp;lt;=$(varMaxDate);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;//*************** Master Calendar ***************&lt;BR /&gt;MasterCalendar:&lt;BR /&gt;LOAD&lt;BR /&gt; TempDate AS master_date,&lt;BR /&gt; Week(TempDate) AS Week,&lt;BR /&gt; Year(TempDate) AS Year,&lt;BR /&gt; Month(TempDate) AS Month,&lt;BR /&gt; Day(TempDate) AS Day,&lt;BR /&gt; Weekday(TempDate) AS WeekDay,&lt;BR /&gt; 'Q' &amp;amp; ceil(month(TempDate / 3)) AS Quarter,&lt;BR /&gt; Date(monthstart(TempDate), 'MMM-YYYY') AS&lt;BR /&gt; MonthYear,&lt;BR /&gt; Week(TempDate)&amp;amp;'-'&amp;amp;Year(TempDate) AS WeekYear,&lt;BR /&gt; inyeartodate(TempDate, $(vToday), 0) * -1 AS&lt;BR /&gt; CurYTDFlag,&lt;BR /&gt; inyeartodate(TempDate, $(vToday), -1) * -1 AS&lt;BR /&gt; LastYTDFlag&lt;BR /&gt;RESIDENT TempCalendar&lt;BR /&gt;ORDER BY TempDate ASC;&lt;BR /&gt;&lt;BR /&gt;DROP TABLE TempCalendar;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/6283.qlik_5F00_prototype_5F00_schema.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/6283.qlik_5F00_prototype_5F00_schema.JPG" /&gt;&lt;/A&gt; Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 18:11:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-Calendar-Joining-Mutliple-Date-Fields/m-p/211615#M715433</guid>
      <dc:creator />
      <dc:date>2010-01-20T18:11:07Z</dc:date>
    </item>
    <item>
      <title>Master Calendar Joining Mutliple Date Fields</title>
      <link>https://community.qlik.com/t5/QlikView/Master-Calendar-Joining-Mutliple-Date-Fields/m-p/211616#M715434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So the above post has brought me much closer to where I want to go but is still not correct. Below is the calendar I use to create the below schema. Currently it is combining data for requested_date which is fine expect for when an event occurs when an order or printed date does not.&lt;/P&gt;&lt;P&gt;Ideally I would like to create a calendar with every date since 2001 and pass in order, requested and printed as variables. I have yet to find a solution like this so I am still hoping something close the below would work.&lt;/P&gt;&lt;P&gt;I do this for backlog, booked and TotalSales. The below example is just for backlog. I convert each 'X_date' into a standard. Then I change the name to 'master_date.'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;Booked:&lt;BR /&gt;LOAD&lt;BR /&gt;order_date AS master_date,&lt;BR /&gt;qty_ordered AS qty_ordered_Ord,&lt;BR /&gt;qty_canceled AS qty_canceled_Ord,&lt;BR /&gt;qty_invoiced AS qty_invoiced_Ord,&lt;BR /&gt;unit_price AS unit_price_Ord,&lt;BR /&gt;customer_id,&lt;BR /&gt;ship2_name,&lt;BR /&gt;ship2_add1,&lt;BR /&gt;ship2_city,&lt;BR /&gt;ship2_state,&lt;BR /&gt;ship2_zip,&lt;BR /&gt;//customer_id,&lt;BR /&gt;order_date,&lt;BR /&gt;Margin_Booked;&lt;BR /&gt;&lt;BR /&gt;SQL Select&lt;BR /&gt;CONVERT(varchar(23),order_date,101) AS order_date,&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;I&gt;Master Calendar&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;Temp:&lt;BR /&gt;LOAD&lt;BR /&gt; min(master_date) AS minDate,&lt;BR /&gt; max(master_date) AS maxDate&lt;BR /&gt;RESIDENT&lt;BR /&gt; Backlog;&lt;BR /&gt;LET varMinDate = Num(Peek('minDate', 0, 'Temp'));&lt;BR /&gt;LET varMaxDate = Num(Peek('maxDate', 0, 'Temp'));&lt;BR /&gt;LET vToday = num(today());&lt;BR /&gt;&lt;BR /&gt;DROP TABLE Temp;&lt;BR /&gt;&lt;BR /&gt;//*************** Temporary Calendar ***************&lt;BR /&gt;TempCalendar:&lt;BR /&gt;LOAD&lt;BR /&gt; $(varMinDate) + Iterno() - 1 AS Num,&lt;BR /&gt; date($(varMinDate) + Iterno() - 1) AS TempDate&lt;BR /&gt;AUTOGENERATE 1 WHILE $(varMinDate)+Iterno () -1 &amp;lt;=$(varMaxDate);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;//*************** Master Calendar ***************&lt;BR /&gt;MasterCalendar:&lt;BR /&gt;LOAD&lt;BR /&gt; TempDate AS master_date,&lt;BR /&gt; Week(TempDate) AS Week,&lt;BR /&gt; Year(TempDate) AS Year,&lt;BR /&gt; Month(TempDate) AS Month,&lt;BR /&gt; Day(TempDate) AS Day,&lt;BR /&gt; Weekday(TempDate) AS WeekDay,&lt;BR /&gt; 'Q' &amp;amp; ceil(month(TempDate / 3)) AS Quarter,&lt;BR /&gt; Date(monthstart(TempDate), 'MMM-YYYY') AS&lt;BR /&gt; MonthYear,&lt;BR /&gt; Week(TempDate)&amp;amp;'-'&amp;amp;Year(TempDate) AS WeekYear,&lt;BR /&gt; inyeartodate(TempDate, $(vToday), 0) * -1 AS&lt;BR /&gt; CurYTDFlag,&lt;BR /&gt; inyeartodate(TempDate, $(vToday), -1) * -1 AS&lt;BR /&gt; LastYTDFlag&lt;BR /&gt;RESIDENT TempCalendar&lt;BR /&gt;ORDER BY TempDate ASC;&lt;BR /&gt;&lt;BR /&gt;DROP TABLE TempCalendar;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/6283.qlik_5F00_prototype_5F00_schema.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/6283.qlik_5F00_prototype_5F00_schema.JPG" /&gt;&lt;/A&gt; Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 18:11:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-Calendar-Joining-Mutliple-Date-Fields/m-p/211616#M715434</guid>
      <dc:creator />
      <dc:date>2010-01-20T18:11:11Z</dc:date>
    </item>
    <item>
      <title>Master Calendar Joining Mutliple Date Fields</title>
      <link>https://community.qlik.com/t5/QlikView/Master-Calendar-Joining-Mutliple-Date-Fields/m-p/211617#M715436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jacob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you anyway solve the Problem?? I have a similar problem too..&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;Sravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jun 2010 13:02:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-Calendar-Joining-Mutliple-Date-Fields/m-p/211617#M715436</guid>
      <dc:creator />
      <dc:date>2010-06-30T13:02:24Z</dc:date>
    </item>
    <item>
      <title>Master Calendar Joining Mutliple Date Fields</title>
      <link>https://community.qlik.com/t5/QlikView/Master-Calendar-Joining-Mutliple-Date-Fields/m-p/211618#M715438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I did at least for us internally.&lt;/P&gt;&lt;P&gt;First you must convert your date into a standard format.&lt;/P&gt;&lt;P&gt;So something like this in the SQL load: CONVERT (varchar(23)),date_created,101) AS xdate&lt;/P&gt;&lt;P&gt;Then in the QV load: xdate AS master_date&lt;/P&gt;&lt;P&gt;This will then combine every 'date field' into the same format and join together all the 'master_dates' using QV associative nature.&lt;/P&gt;&lt;P&gt;The master calendar then needs to have a listing of every date between whatever time span of your choosing. This will be needed to dump your master_date into your defined time span. Then place your master_date into the temporary placeholder and use this to define your dates.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jun 2010 14:08:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-Calendar-Joining-Mutliple-Date-Fields/m-p/211618#M715438</guid>
      <dc:creator />
      <dc:date>2010-06-30T14:08:30Z</dc:date>
    </item>
  </channel>
</rss>

