<?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 with Outlets in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calendar-with-Outlets/m-p/1622341#M594794</link>
    <description>&lt;P&gt;Dominik, just leaving you a couple of Design Blog links that may prove useful in addition to what Marcus and Vegar gave you.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/The-Master-Calendar/ba-p/1471527" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/The-Master-Calendar/ba-p/1471527&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/The-Master-Time-Table/ba-p/1469392" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/The-Master-Time-Table/ba-p/1469392&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Sorry I am not much more help than that.&amp;nbsp; If Vegar's info helped you solve things, be sure to give him credit by clicking the Accept as Solution button on his post, that way others know that worked as well.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
    <pubDate>Tue, 10 Sep 2019 21:48:33 GMT</pubDate>
    <dc:creator>Brett_Bleess</dc:creator>
    <dc:date>2019-09-10T21:48:33Z</dc:date>
    <item>
      <title>Calendar with Outlets</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-with-Outlets/m-p/1619229#M594788</link>
      <description>&lt;P&gt;Hey Qlik Ninjas,&lt;/P&gt;&lt;P&gt;i need to build a master calendar. But i need to build a key with the date, time and outlet-id. So how can i build a calendar that contains every timestamp for every outlet on my list.&lt;/P&gt;&lt;P class="p1"&gt;This my calendar so far.&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;BR /&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;LET&lt;/STRONG&gt;&lt;/SPAN&gt; vMinDate = &lt;SPAN class="s1"&gt;Num&lt;/SPAN&gt;(&lt;SPAN class="s1"&gt;MakeDate&lt;/SPAN&gt;(2017,1,1));&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;LET&lt;/STRONG&gt;&lt;/SPAN&gt; vMaxDate = &lt;SPAN class="s1"&gt;Floor&lt;/SPAN&gt;(&lt;SPAN class="s1"&gt;MonthEnd&lt;/SPAN&gt;(&lt;SPAN class="s1"&gt;Today&lt;/SPAN&gt;(-1)));&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;LET&lt;/STRONG&gt;&lt;/SPAN&gt; vDays = &lt;SPAN class="s2"&gt;vMaxDate&lt;/SPAN&gt; - &lt;SPAN class="s2"&gt;vMinDate&lt;/SPAN&gt; ;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Calendar:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;Year&lt;/SPAN&gt;(&lt;SPAN class="s2"&gt;KeyDate&lt;/SPAN&gt;) &lt;SPAN class="s1"&gt;as&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;Year&lt;/SPAN&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="s1"&gt;Date&lt;/SPAN&gt;(&lt;SPAN class="s1"&gt;MonthName&lt;/SPAN&gt;(&lt;SPAN class="s2"&gt;KeyDate&lt;/SPAN&gt;),'MMM/YYYY') &lt;SPAN class="s1"&gt;as&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;MonthYear&lt;/SPAN&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="s1"&gt;Month&lt;/SPAN&gt;(&lt;SPAN class="s2"&gt;KeyDate&lt;/SPAN&gt;) &lt;SPAN class="s1"&gt;as&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;Month&lt;/SPAN&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="s1"&gt;Day&lt;/SPAN&gt;(&lt;SPAN class="s2"&gt;KeyDate&lt;/SPAN&gt;) &lt;SPAN class="s1"&gt;as&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;Day&lt;/SPAN&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="s1"&gt;Date&lt;/SPAN&gt;(&lt;SPAN class="s1"&gt;Floor&lt;/SPAN&gt;(&lt;SPAN class="s1"&gt;Date&lt;/SPAN&gt;(&lt;SPAN class="s2"&gt;KeyDate&lt;/SPAN&gt;,'MM/DD/YYYY')),'MM/DD/YYYY') &lt;SPAN class="s1"&gt;as&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;Date&lt;/SPAN&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="s1"&gt;Hour&lt;/SPAN&gt;(&lt;SPAN class="s2"&gt;KeyDate&lt;/SPAN&gt;) &lt;SPAN class="s1"&gt;AS&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;Hour&lt;/SPAN&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="s1"&gt;Timestamp&lt;/SPAN&gt;(&lt;SPAN class="s1"&gt;Floor&lt;/SPAN&gt;(&lt;SPAN class="s2"&gt;KeyDate&lt;/SPAN&gt;, 1/24),'MM/DD/YYYY HH') &lt;SPAN class="s1"&gt;as&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;KeyDate&lt;/SPAN&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;Timestamp&lt;/SPAN&gt;(&lt;SPAN class="s3"&gt;&lt;STRONG&gt;&lt;I&gt;$(vMinDate)&lt;/I&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; + (&lt;SPAN class="s1"&gt;RecNo&lt;/SPAN&gt;()-1)/24) &lt;SPAN class="s1"&gt;as&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;KeyDate&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="s1"&gt;AUTOGENERATE&lt;/SPAN&gt; 24 * &lt;SPAN class="s3"&gt;&lt;STRONG&gt;&lt;I&gt;$(vDays)&lt;/I&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; + 1;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;store&lt;/STRONG&gt;&lt;/SPAN&gt; Calendar &lt;SPAN class="s1"&gt;into&lt;/SPAN&gt; CalendarTest.qvd(&lt;SPAN class="s1"&gt;QVD&lt;/SPAN&gt;);&lt;/P&gt;&lt;P class="p1"&gt;And i have list with my Outlets like:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;TD&gt;Name&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Hamburg&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:35:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-with-Outlets/m-p/1619229#M594788</guid>
      <dc:creator>dominikkeller</dc:creator>
      <dc:date>2024-11-16T02:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar with Outlets</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-with-Outlets/m-p/1619233#M594789</link>
      <description>&lt;P&gt;Including a time-part into a calendar is IMO seldom a good idea. Usually it's better to use a master-calendar and a master timetable - and depending on your data and requirements it may necessary to use multiple ones. What's the aim behind the purpose of linking the calendar with an outlet-id?&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2019 11:12:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-with-Outlets/m-p/1619233#M594789</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-09-02T11:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar with Outlets</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-with-Outlets/m-p/1619234#M594790</link>
      <description>&lt;P&gt;Hey Marcus,&lt;/P&gt;&lt;P&gt;at the moment my payment-roll is also my main table in that are dates and times. My Problem now is, i have another fact table with date and timestamps. So i need a link table. In that i need every id, date and time. that's my case&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2019 11:16:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-with-Outlets/m-p/1619234#M594790</guid>
      <dc:creator>dominikkeller</dc:creator>
      <dc:date>2019-09-02T11:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar with Outlets</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-with-Outlets/m-p/1619236#M594791</link>
      <description>&lt;P&gt;Mostly it's easier and more performant not to create a association or a link-table between two fact-tables else just to concatenate them.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2019 11:21:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-with-Outlets/m-p/1619236#M594791</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-09-02T11:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar with Outlets</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-with-Outlets/m-p/1619243#M594792</link>
      <description>&lt;P&gt;Consider&amp;nbsp;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp; advice,&amp;nbsp; &amp;nbsp;but if still you want to replicate your timestamps for all outlets you perform a join it with your outled Id table like I've done below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Calendar:
LOAD 
  Year(KeyDate) as Year,
  Date(MonthName(KeyDate),'MMM/YYYY') as MonthYear,
  Month(KeyDate) as Month,
  Day(KeyDate) as Day,
  Date(Floor(Date(KeyDate,'MM/DD/YYYY')),'MM/DD/YYYY') as Date,
  Hour(KeyDate) AS Hour,
  Timestamp(Floor(KeyDate, 1/24),'MM/DD/YYYY HH') as KeyDate
;
LOAD
  Timestamp($(vMinDate) + (RecNo()-1)/24) as KeyDate
AUTOGENERATE 
  24 * $(vDays) + 1;

JOIN (Calendar) LOAD 
  ID as OutletId
FROM 
  OutletData;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2019 11:28:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-with-Outlets/m-p/1619243#M594792</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-09-02T11:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar with Outlets</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-with-Outlets/m-p/1622341#M594794</link>
      <description>&lt;P&gt;Dominik, just leaving you a couple of Design Blog links that may prove useful in addition to what Marcus and Vegar gave you.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/The-Master-Calendar/ba-p/1471527" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/The-Master-Calendar/ba-p/1471527&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/The-Master-Time-Table/ba-p/1469392" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/The-Master-Time-Table/ba-p/1469392&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Sorry I am not much more help than that.&amp;nbsp; If Vegar's info helped you solve things, be sure to give him credit by clicking the Accept as Solution button on his post, that way others know that worked as well.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 21:48:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-with-Outlets/m-p/1622341#M594794</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-09-10T21:48:33Z</dc:date>
    </item>
  </channel>
</rss>

