<?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: Calender Script for SQL Database Pull-in in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calender-Script-for-SQL-Database-Pull-in/m-p/917812#M318202</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you refer to the table Your Table Name Which You Want to Pull Dates From" how do I construct this? I'm pulling in the dates based on the above SQL Query&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Aug 2015 18:17:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-08-10T18:17:21Z</dc:date>
    <item>
      <title>Calender Script for SQL Database Pull-in</title>
      <link>https://community.qlik.com/t5/QlikView/Calender-Script-for-SQL-Database-Pull-in/m-p/917807#M318197</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've been reading up on the calendar scripts to use in Qlikview but none seem to be working for me. I think the reason has to do with the fact that I'm trying to group the dates I pull-in from my SQL database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I get a calendar script which allows dates to be grouped by month/year to work with a OLEDB database connection?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 16:18:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calender-Script-for-SQL-Database-Pull-in/m-p/917807#M318197</guid>
      <dc:creator />
      <dc:date>2015-08-10T16:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calender Script for SQL Database Pull-in</title>
      <link>https://community.qlik.com/t5/QlikView/Calender-Script-for-SQL-Database-Pull-in/m-p/917808#M318198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you talking about a master calendar? If then, a master calendar is based on Min and Max dates from facts/dimensions tables? I don't think SQL grouping will have much impact. Although, It is difficult to determine without seeing some sample data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 16:50:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calender-Script-for-SQL-Database-Pull-in/m-p/917808#M318198</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-08-10T16:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calender Script for SQL Database Pull-in</title>
      <link>https://community.qlik.com/t5/QlikView/Calender-Script-for-SQL-Database-Pull-in/m-p/917809#M318199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, I need a master calendar, my problem is that I am unsure how to edit my script to get this to work. E.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;OLEDB&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;CONNECT&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TO&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial . . . .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;SQL&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; select * from [*****] where date &amp;gt; '01/01/2013' AND [*****] &amp;lt;&amp;gt; 0;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;inner&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;join&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SELECT&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * from *******; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;This is my query (I've replaced the database names with asterixes as well as a field). Where and in what form would my master calendar go?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 16:55:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calender-Script-for-SQL-Database-Pull-in/m-p/917809#M318199</guid>
      <dc:creator />
      <dc:date>2015-08-10T16:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calender Script for SQL Database Pull-in</title>
      <link>https://community.qlik.com/t5/QlikView/Calender-Script-for-SQL-Database-Pull-in/m-p/917810#M318200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to edit the below code to fit into your requirements. I would first create another tab and call it Master Calendar and then place the below code in that tab:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dates:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="color: #3366ff;"&gt;Min&lt;/SPAN&gt;("Your Date Field") &lt;SPAN style="color: #3366ff;"&gt;AS&lt;/SPAN&gt; MinDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="color: #3366ff;"&gt;Max&lt;/SPAN&gt;("&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Your Date Field&lt;/SPAN&gt;") &lt;SPAN style="color: #3366ff;"&gt;AS&lt;/SPAN&gt; MaxDate&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;Resident&lt;/SPAN&gt; "Your Table Name Which You Want to Pull Dates From";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG&gt;LET&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #999999;"&gt;&lt;EM&gt;&lt;STRONG&gt;vMinDate&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt; = &lt;SPAN style="color: #3366ff;"&gt;Peek&lt;/SPAN&gt;('MinDate', 0, 'Dates');&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG&gt;LET&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="; color: #999999;"&gt;&lt;EM&gt;&lt;STRONG&gt;vMaxDate&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt; = &lt;SPAN style="color: #3366ff;"&gt;Peek&lt;/SPAN&gt;('MaxDate', 0, 'Dates');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TempCalendar:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="color: #3366ff;"&gt;Date&lt;/SPAN&gt;($(vMinDate) + &lt;SPAN style="color: #3366ff;"&gt;RowNo&lt;/SPAN&gt;() - 1) &lt;SPAN style="color: #3366ff;"&gt;AS&lt;/SPAN&gt; CalDate&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="color: #3366ff;"&gt;AutoGenerate&lt;/SPAN&gt; $(vMaxDate) - $(vMinDate) + 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Calendar:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; CalDate &lt;SPAN style="color: #3366ff;"&gt;AS&lt;/SPAN&gt; "Your Date Field Which Matches with Other Date Field That You Want to Hook This Up",&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="color: #3366ff;"&gt;Year&lt;/SPAN&gt;(CalDate) &lt;SPAN style="color: #3366ff;"&gt;AS&lt;/SPAN&gt; Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="color: #3366ff;"&gt;Month&lt;/SPAN&gt;(CalDate) &lt;SPAN style="color: #3366ff;"&gt;AS&lt;/SPAN&gt; Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="color: #3366ff;"&gt;Week&lt;/SPAN&gt;(CalDate) &lt;SPAN style="color: #3366ff;"&gt;AS&lt;/SPAN&gt; Week,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="color: #3366ff;"&gt;Day&lt;/SPAN&gt;(CalDate) &lt;SPAN style="color: #3366ff;"&gt;AS&lt;/SPAN&gt; Day,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'Q' &amp;amp; &lt;SPAN style="color: #3366ff;"&gt;Ceil&lt;/SPAN&gt;(&lt;SPAN style="color: #3366ff;"&gt;Month&lt;/SPAN&gt;(CalDate) / 3 ) &lt;SPAN style="color: #3366ff;"&gt;AS&lt;/SPAN&gt; Quarter&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;Resident&lt;/SPAN&gt; TempCalendar;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG&gt;DROP TABLES&lt;/STRONG&gt;&lt;/SPAN&gt; Dates, TempCalendar;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 17:11:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calender-Script-for-SQL-Database-Pull-in/m-p/917810#M318200</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-08-10T17:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calender Script for SQL Database Pull-in</title>
      <link>https://community.qlik.com/t5/QlikView/Calender-Script-for-SQL-Database-Pull-in/m-p/917811#M318201</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 attached a calendar for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you just need to put &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Year(date(SaleDate))&amp;amp;num(Month(date(SaleDate)),'00') as YM,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;into the table which has the date in it. (see example qvw)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this calendar allows you to also set a fiscal year. if you do not want to be able to have fiscal year - delete the &lt;/P&gt;&lt;P&gt;Concatenate(Calendar) load&amp;nbsp; script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you have a fiscal year remember that adding multiple calendars duplicates data - so in your frunt end create a list box for calendarType, select a field then in properties tick "Always only 1 selected"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;because you have now created a MONTH and YEAR field. you just use them in your front end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have any problems let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Gareth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 17:15:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calender-Script-for-SQL-Database-Pull-in/m-p/917811#M318201</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-10T17:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calender Script for SQL Database Pull-in</title>
      <link>https://community.qlik.com/t5/QlikView/Calender-Script-for-SQL-Database-Pull-in/m-p/917812#M318202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you refer to the table Your Table Name Which You Want to Pull Dates From" how do I construct this? I'm pulling in the dates based on the above SQL Query&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 18:17:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calender-Script-for-SQL-Database-Pull-in/m-p/917812#M318202</guid>
      <dc:creator />
      <dc:date>2015-08-10T18:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Calender Script for SQL Database Pull-in</title>
      <link>https://community.qlik.com/t5/QlikView/Calender-Script-for-SQL-Database-Pull-in/m-p/917813#M318203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There has to be a date field in your SQL query because you have filter in the WHERE clause (WHERE date &amp;gt; '01/01/2013'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the field is called "date", then you can use that field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 18:20:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calender-Script-for-SQL-Database-Pull-in/m-p/917813#M318203</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-08-10T18:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Calender Script for SQL Database Pull-in</title>
      <link>https://community.qlik.com/t5/QlikView/Calender-Script-for-SQL-Database-Pull-in/m-p/917814#M318204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, that's fine. However, is this not the same as "my date field" i.e. both would read CBDate in my case?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 18:28:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calender-Script-for-SQL-Database-Pull-in/m-p/917814#M318204</guid>
      <dc:creator />
      <dc:date>2015-08-10T18:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calender Script for SQL Database Pull-in</title>
      <link>https://community.qlik.com/t5/QlikView/Calender-Script-for-SQL-Database-Pull-in/m-p/917815#M318205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assumed that you would have two date fields such as "service start date" and "service end date". In this case, you can use something similar to the below script:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/95575_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;As a result of this, you would have dates populated:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/95576_Capture.PNG" style="height: 378px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Does it come close to what you want to accomplish?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 19:01:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calender-Script-for-SQL-Database-Pull-in/m-p/917815#M318205</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-08-10T19:01:23Z</dc:date>
    </item>
  </channel>
</rss>

