<?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: Master Calendar Script not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Master-Calendar-Script-not-working/m-p/1077370#M359355</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank again Ruben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried your code but it didn't work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you mind attaching sample QVW?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Mar 2016 09:15:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-03-28T09:15:10Z</dc:date>
    <item>
      <title>Master Calendar Script not working</title>
      <link>https://community.qlik.com/t5/QlikView/Master-Calendar-Script-not-working/m-p/1077365#M359350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Master calendar script is loading fine but the list box selections are not reflecting any changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #339966;"&gt;What am I trying to achieve ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;When I select any &lt;/SPAN&gt;&lt;EM style="font-size: 13.3333px;"&gt;Quarter&lt;/EM&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; or &lt;/SPAN&gt;&lt;EM style="font-size: 13.3333px;"&gt;Month-Year&lt;/EM&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; in the List Box, then the Total number of Orders are not changing. I want them to change based on what quarter&amp;nbsp; or month-year is selected. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff6600;"&gt;What I have Tried So far?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;My Application has too many date fields so I have created a Date Link table to create a Master Calendar by using &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Master Calendar script by &lt;/SPAN&gt;&lt;A href="https://community.qlik.com/qlik-users/44008"&gt;jgd&lt;/A&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;‌ in his post &lt;/SPAN&gt;&lt;A href="https://community.qlik.com/thread/48693"&gt;Creating A Master Calendar&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #000000;"&gt;About Data Model&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I use QVDs which are generated from SQL&lt;/LI&gt;&lt;LI&gt;Each Date Field is a UTC Timestamp&lt;/LI&gt;&lt;LI&gt;I convert them into LocalTime when using those QVD in any application.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have &lt;STRONG style="color: #000000;"&gt;attached a zip file&lt;/STRONG&gt; containing &lt;STRONG&gt;QVD files&lt;/STRONG&gt; and a &lt;STRONG&gt;sample QVW.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please advice if anything wrong with my script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Mar 2016 09:18:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-Calendar-Script-not-working/m-p/1077365#M359350</guid>
      <dc:creator />
      <dc:date>2016-03-27T09:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Master Calendar Script not working</title>
      <link>https://community.qlik.com/t5/QlikView/Master-Calendar-Script-not-working/m-p/1077366#M359351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lokesh, your dates from orders are DateTime meanwhile the dates from your calendar are only dates (as usual), just use floor to remove the Time part of the order dates, ie:&lt;/P&gt;&lt;P&gt;Date(floor(ConvertToLocalTime(CompletionDate)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To explain that: each day counts as '1', and 12 hours are '0.5'... your calendar creates integer numbers meanwhile the data readed from Order has decimals so there is no coincidence between the data readed and the calendar, using floor converts the dates from the orders in integer numbers (rounding down to keep it in the same day), so they found his calendar coincidence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nice post! sample, qvds, well structured and also colored!&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;Edit: Use floor in the DateLink table:&lt;/P&gt;&lt;P&gt;Load&amp;nbsp;&amp;nbsp;&amp;nbsp; OrderId,&lt;/P&gt;&lt;P&gt;&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; Date(Floor(CompletionDate))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date,&lt;/P&gt;&lt;P&gt;&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; 'Completion Date'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS&amp;nbsp;&amp;nbsp;&amp;nbsp; [Date Type]&lt;/P&gt;&lt;P&gt;Resident Order;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Mar 2016 10:10:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-Calendar-Script-not-working/m-p/1077366#M359351</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-03-27T10:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: Master Calendar Script not working</title>
      <link>https://community.qlik.com/t5/QlikView/Master-Calendar-Script-not-working/m-p/1077367#M359352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Ruben, it worked &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/check.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I always try to post my questions very clear so I don't waste much time of other people &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;Also, I am new to Qlik so I have one more question related to this post :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Can this master calendar script be utilised to get more granularity at time level?&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Mar 2016 10:22:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-Calendar-Script-not-working/m-p/1077367#M359352</guid>
      <dc:creator />
      <dc:date>2016-03-27T10:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Master Calendar Script not working</title>
      <link>https://community.qlik.com/t5/QlikView/Master-Calendar-Script-not-working/m-p/1077368#M359353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lokesh , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA the app , hope this help , please do not go for date link table directly , create one master script for calendar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure date link table is required, and date should link to created date. But may be this is your requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Mar 2016 10:28:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-Calendar-Script-not-working/m-p/1077368#M359353</guid>
      <dc:creator>agni_gold</dc:creator>
      <dc:date>2016-03-27T10:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Master Calendar Script not working</title>
      <link>https://community.qlik.com/t5/QlikView/Master-Calendar-Script-not-working/m-p/1077369#M359354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try to iterate based in granularity, if you want to add hours -and a day has 24 hours- you just need to set the steps so here is a coincidence between your DateLink and your calendar, so there is steps of 1/24.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In link:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date(Floor(CompletionDate, 1/24))&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt; AS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In calendar:&lt;/P&gt;&lt;P&gt; Floor($(varMinDate) + Iterno()/24 -1, 1/24)&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; As Num,&amp;nbsp; &lt;/P&gt;&lt;P&gt; Floor(Date($(varMinDate) + IterNo()/24 -1), 1/24)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS TempDate&amp;nbsp; &lt;/P&gt;&lt;P&gt; AutoGenerate 1 While $(varMinDate) + Floor(IterNo()/24, 1/24) -1 &amp;lt;= $(varMaxDate);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want more granularity or there is a lot of historical data, maybe you may take a look at this post: &lt;A href="https://community.qlik.com/qlik-blogpost/3206"&gt;The Master Time Table&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Mar 2016 15:03:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-Calendar-Script-not-working/m-p/1077369#M359354</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-03-27T15:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Master Calendar Script not working</title>
      <link>https://community.qlik.com/t5/QlikView/Master-Calendar-Script-not-working/m-p/1077370#M359355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank again Ruben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried your code but it didn't work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you mind attaching sample QVW?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2016 09:15:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-Calendar-Script-not-working/m-p/1077370#M359355</guid>
      <dc:creator />
      <dc:date>2016-03-28T09:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Master Calendar Script not working</title>
      <link>https://community.qlik.com/t5/QlikView/Master-Calendar-Script-not-working/m-p/1077371#M359356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found my answer in the previous post. But yea it is my requirement to have Master Calendar linked to Date link table due to multiple date type selection requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for you input though &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2016 09:16:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-Calendar-Script-not-working/m-p/1077371#M359356</guid>
      <dc:creator />
      <dc:date>2016-03-28T09:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Master Calendar Script not working</title>
      <link>https://community.qlik.com/t5/QlikView/Master-Calendar-Script-not-working/m-p/1077372#M359357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lokesh, I don't really tested but seems works, I upload 2 versions:&lt;/P&gt;&lt;P&gt;- The first one with one master calendar, with hour granularity.&lt;/P&gt;&lt;P&gt;- The second with a master calendar and a master time table, with minute granularity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check in "configuration -&amp;gt; document properties -&amp;gt; Tables" the number of records for each option... as an advance: the second option has less number of records and less distinct values even having more granularity.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2016 19:07:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-Calendar-Script-not-working/m-p/1077372#M359357</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-03-28T19:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Master Calendar Script not working</title>
      <link>https://community.qlik.com/t5/QlikView/Master-Calendar-Script-not-working/m-p/1077373#M359358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rube, Thanks for uploading QVW. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have posted another question on the forum which is bit more complex this time.. here is the link below. Your time and help will be highly appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/211872"&gt;how to calculate days between two timestamps&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Apr 2016 00:27:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-Calendar-Script-not-working/m-p/1077373#M359358</guid>
      <dc:creator />
      <dc:date>2016-04-03T00:27:02Z</dc:date>
    </item>
  </channel>
</rss>

