<?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: Calendar Dates &amp; Schema in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calendar-Dates-Schema/m-p/1039649#M936337</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I got this to work. I was renaming my fields in the Load Statement, ex: [Retail Month] as RetailMonth. When I use the unchanged name from the Load file everything works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’m still stumped on how to change the name of the field and use the name in my MakeDate function. My guess is it would have to come after the statement so that Qlikview knows the Field exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the proper way to rename the field and than use the Renamed field in the function. Would it come after the load in a Join statement back to the Fact Table? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Feb 2016 15:52:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-02-16T15:52:49Z</dc:date>
    <item>
      <title>Calendar Dates &amp; Schema</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-Dates-Schema/m-p/1039645#M936333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm fairly new to Qlikview and working on my first Dashboard. The issue that I'm having is with dates. I've Concatenated three files into my Fact Table that have different date fields. Below are the files, header names and examples of the date data found in them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Retail File #1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Retail Date . 01/01/2013, 01/05/2014&lt;/P&gt;&lt;P&gt;Retail Month - 1, 2, 3, ..12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Retail File #2 (different source):&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Retail Month - 1, 2, 3, ..12&lt;/P&gt;&lt;P&gt;Retail Year - 2012, 2013, 2014&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Target File:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Plan Year -&amp;nbsp; 2012, 2013, 2014, 2015,&lt;/P&gt;&lt;P&gt;Plan Month - 1, 2, 3, ..12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to be able to compare Retails to plan over the same time periods (filtering on 2015 gives me all 2015 retail and 2015 plan). Not sure if I need to create a 'master' date field in a LinkTable? Or, should I split my three files into separate tables&amp;nbsp; (ie. is it a schema issue?) Just having trouble visualizing this since I have some data that has a full date and other data that is just month and year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be great, thank you!&lt;/P&gt;&lt;P&gt;DJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2016 21:24:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-Dates-Schema/m-p/1039645#M936333</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-15T21:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar Dates &amp; Schema</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-Dates-Schema/m-p/1039646#M936334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this in your script&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;Retail File #1:&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;Year(Retail Date) as Year,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Retail Month]&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;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Retail File #2:&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;[Retail Month],&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Retail Year] as Year&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;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Target File:&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;[Plan Year] as Year,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Plan Year],&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Plan Month]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2016 22:32:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-Dates-Schema/m-p/1039646#M936334</guid>
      <dc:creator />
      <dc:date>2016-02-15T22:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar Dates &amp; Schema</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-Dates-Schema/m-p/1039647#M936335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you concatenated your Facts into a single Fact table, then you should also standardize your dates on a single common field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally, if you could bring all three files into the same level of granularity. It looks like the first file has daily data and the other two files have monthly data. Ask your users - is there any value in keeping the daily data for the first file, if the other two files are monthly. If you can settle on a single level of granularity that would be the easiest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to keep individual dates for the first file, then you could create a common MonthYear field. Something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MonthStart(RetailDate) as MonthYear&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - from File 1&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;MakeDate(RetailYear, RetailMonth, 1) as MonthYear&amp;nbsp;&amp;nbsp;&amp;nbsp; - from File 2&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;MakeDate(PlanYear, PlanMonth, 1) as MonthYear&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - from File 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, all the other fields (Year, Quarter, etc...) that are related to Months, should be associated with the common MonthYear. Then, you will be able to compare Plan to Actual and analyze all three facts together.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;Upgrade your Qlik skills at the &lt;A href="http://masterssummit.com/"&gt;Masters Summit for Qlik&lt;/A&gt; - coming soon to Milan, Italy!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2016 22:49:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-Dates-Schema/m-p/1039647#M936335</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2016-02-15T22:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar Dates &amp; Schema</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-Dates-Schema/m-p/1039648#M936336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oleg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your response. Should I insert the MonthYear Field after my Load statements for the 3 files? Should I also Concatenate this field to my Fact Table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lastly, once I've created the MonthYear Field, can I use that in my MasterCalendar? Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DJ&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 14:05:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-Dates-Schema/m-p/1039648#M936336</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-16T14:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar Dates &amp; Schema</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-Dates-Schema/m-p/1039649#M936337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I got this to work. I was renaming my fields in the Load Statement, ex: [Retail Month] as RetailMonth. When I use the unchanged name from the Load file everything works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’m still stumped on how to change the name of the field and use the name in my MakeDate function. My guess is it would have to come after the statement so that Qlikview knows the Field exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the proper way to rename the field and than use the Renamed field in the function. Would it come after the load in a Join statement back to the Fact Table? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 15:52:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-Dates-Schema/m-p/1039649#M936337</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-16T15:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar Dates &amp; Schema</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-Dates-Schema/m-p/1039650#M936338</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;In my suggestion, the three lines were supposed to be added to the three individual LOAD statements for the three data files. Then, when you concatenate the three sources into a single fact, you'd already have the common field MonthYear populated in all three.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field names that I used are just there for example, feel free to rename all fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notice that you cannot rename multiple fields into a single field AFTER the data is loaded. You can only rename fields in the process of the data load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 17:08:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-Dates-Schema/m-p/1039650#M936338</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2016-02-16T17:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar Dates &amp; Schema</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-Dates-Schema/m-p/1039651#M936339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I am now adding the three Load statements for the three data files directly into the load statements. I think I would need a Preceding Load in this case to change the name of the filed and use the new name as part of the new load statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all of your help. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 17:59:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-Dates-Schema/m-p/1039651#M936339</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-16T17:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar Dates &amp; Schema</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-Dates-Schema/m-p/1039652#M936340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use a preceding load, or you can simply add an extra line to the original load - there is no problem with that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 18:34:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-Dates-Schema/m-p/1039652#M936340</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2016-02-16T18:34:50Z</dc:date>
    </item>
  </channel>
</rss>

