<?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 Dates in QlikView in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dates-in-QlikView/m-p/154819#M31299</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;This should do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Date:load Date(today()-recno()+1) as Dateautogenerate(today()-'2008-01-01');&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope that helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Mar 2011 20:04:05 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2011-03-10T20:04:05Z</dc:date>
    <item>
      <title>Dates in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Dates-in-QlikView/m-p/154816#M31296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have information being pulled from a view in SQL Server into a QV document.&lt;/P&gt;&lt;P&gt;One of the columns being pulled from the view is date_received and is formatted like so "28/02/2011 00:00:00"&lt;/P&gt;&lt;P&gt;In my script I have the dates formatted as such&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Date:&lt;BR /&gt;load&lt;BR /&gt; today()-recno()+1 as Date&lt;BR /&gt;autogenerate(today()-'2008-01-01');&lt;/P&gt;&lt;P&gt;DateParts:&lt;BR /&gt;load&lt;BR /&gt; Date as MyDate,&lt;BR /&gt; Year(Date) as Year,&lt;BR /&gt; yearname ( Date, 0, 4 ) as FinancialYear,&lt;BR /&gt; date(monthstart(Date),'MMM-YYYY') as Date_MonthYear,&lt;BR /&gt; date(week(Date),'WW-YYYY') as Date_WeekYear,&lt;BR /&gt; Month(Date) as FiscalRollMth,&lt;BR /&gt; Month(Date) &amp;amp;'-'&amp;amp;right(Year(Date),2) as RollShortMth,&lt;BR /&gt; Ceil(Month(Date)/3) &amp;amp;'-'&amp;amp;right(Year(Date),2) as RollShortQrt,&lt;BR /&gt; Month(Date) as Month,&lt;BR /&gt; Day(Date) as Day,&lt;BR /&gt; Week(Date) as Week&lt;BR /&gt;&lt;BR /&gt;resident Date;&lt;/P&gt;&lt;P&gt;drop table Date;&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;My question is how do have the dates from 'date_received' as the main driver for my dates.&lt;/P&gt;&lt;P&gt;When i put 'Month' and 'Year' list boxes on my page it doesnt seem to pick up on these dates and there is no relationship whatsoever. When i link the tables and put 'date_received as MyDate' the format is changed from "28/02/2011 00:00:00" to a 5 digit string, for example, '40602'.&lt;/P&gt;&lt;P&gt;Apologies for posting such a long question, but hopefully i've been clear enough in trying to portray the issue. Any help or guidance would, as always, be greatly appreciated.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2011 18:01:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates-in-QlikView/m-p/154816#M31296</guid>
      <dc:creator />
      <dc:date>2011-03-10T18:01:43Z</dc:date>
    </item>
    <item>
      <title>Dates in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Dates-in-QlikView/m-p/154817#M31297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DateParts:&lt;BR /&gt;load&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Date as &lt;B&gt;'date_received',&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Year(Date) as Year,&lt;BR /&gt; yearname ( Date, 0, 4 ) as FinancialYear,&lt;BR /&gt; date(monthstart(Date),'MMM-YYYY') as Date_MonthYear,&lt;BR /&gt; date(week(Date),'WW-YYYY') as Date_WeekYear,&lt;BR /&gt; Month(Date) as FiscalRollMth,&lt;BR /&gt; Month(Date) &amp;amp;'-'&amp;amp;right(Year(Date),2) as RollShortMth,&lt;BR /&gt; Ceil(Month(Date)/3) &amp;amp;'-'&amp;amp;right(Year(Date),2) as RollShortQrt,&lt;BR /&gt; Month(Date) as Month,&lt;BR /&gt; Day(Date) as Day,&lt;BR /&gt; Week(Date) as Week&lt;BR /&gt;&lt;BR /&gt;resident Date;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2011 18:08:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates-in-QlikView/m-p/154817#M31297</guid>
      <dc:creator />
      <dc:date>2011-03-10T18:08:31Z</dc:date>
    </item>
    <item>
      <title>Dates in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Dates-in-QlikView/m-p/154818#M31298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess that qlikview will not recognise the format on date_received? So this is my suggestion:&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;makedate(subfield(subfield(date_received,' ',1),'/',3),subfield(subfield(date_received,' ',1),'/',2),subfield(subfield(date_received,' ',1),'/',1)) as MyDate,&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2011 18:30:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates-in-QlikView/m-p/154818#M31298</guid>
      <dc:creator />
      <dc:date>2011-03-10T18:30:19Z</dc:date>
    </item>
    <item>
      <title>Dates in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Dates-in-QlikView/m-p/154819#M31299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;This should do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Date:load Date(today()-recno()+1) as Dateautogenerate(today()-'2008-01-01');&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope that helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2011 20:04:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates-in-QlikView/m-p/154819#M31299</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-03-10T20:04:05Z</dc:date>
    </item>
    <item>
      <title>Dates in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Dates-in-QlikView/m-p/154820#M31300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help everyone. I finally found a resolution to my problem. Instead of having a seperate dates table I integrated the dates into the other tables. Its something which i should have done first and in doing so probably would have avoided all the confusion. Heres the code:&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;LOAD customer_no,&lt;BR /&gt; "date_received" as Date,&lt;BR /&gt; Year(date_received) as Year,&lt;BR /&gt; Month(date_received) as Month,&lt;BR /&gt; -----------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Anyway, thanks again for the help. Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2011 11:44:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates-in-QlikView/m-p/154820#M31300</guid>
      <dc:creator />
      <dc:date>2011-03-11T11:44:28Z</dc:date>
    </item>
  </channel>
</rss>

