<?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 Date Format in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-Format/m-p/205827#M62153</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Blaze&lt;/P&gt;&lt;P&gt;You say it works fine but the error message you posted seems to say otherwise. For some reason QV is complaining about the &amp;lt;= symbol.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Sep 2010 09:49:38 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2010-09-17T09:49:38Z</dc:date>
    <item>
      <title>Date Format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Format/m-p/205823#M62149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I imported some data into qlikview but one of the primary date feilds format is in YYYY/MM/DD. i need it in DD/MM/YYYY.&lt;/P&gt;&lt;P&gt;I tried date(date#(AnniversaryDate,'YYYY/MM/DD'),'DD/MM/YYYY') but its not working. I get the following when i try apply a calendar:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-2379_sourceID:2379" /&gt;&lt;/P&gt;&lt;P&gt;Calendar script is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DateTemp:&lt;/P&gt;&lt;P&gt;LOAD %_AnniversaryDateKey&lt;/P&gt;&lt;P&gt;RESIDENT Data&lt;/P&gt;&lt;P&gt;ORDER BY %_AnniversaryDateKey Asc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMinDate = Num(Peek('%_AnniversaryDateKey', 0, 'DateTemp'));&lt;/P&gt;&lt;P&gt;LET vMaxDate = Num(Peek('%_AnniversaryDateKey', -1, 'DateTemp'));&lt;/P&gt;&lt;P&gt;LET vToday = date(date#(Today(),'DD/MM/YYYY'),'DD/MM/YYYY');&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;TempCalendar:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;$(vMinDate)+IterNo()-1 AS Num,&lt;/P&gt;&lt;P&gt;Date($(vMinDate)+IterNo()-1) AS TempDate&lt;/P&gt;&lt;P&gt;AUTOGENERATE 1 WHILE ($(vMinDate)+IterNo()-1) &amp;lt;= $(vMaxDate);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;MasterCalendar:&lt;/P&gt;&lt;P&gt;LOAD TempDate AS %_AnniversaryDateKey,&lt;/P&gt;&lt;P&gt;week(TempDate) AS Week,&lt;/P&gt;&lt;P&gt;year(TempDate) AS Year,&lt;/P&gt;&lt;P&gt;yearname (TempDate, 0, 7) as FiscalYear,&lt;/P&gt;&lt;P&gt;month(TempDate) AS Month,&lt;/P&gt;&lt;P&gt;day(TempDate) AS Day,&lt;/P&gt;&lt;P&gt;weekday(TempDate) AS WeekDay,&lt;/P&gt;&lt;P&gt;applymap('Quarters_Map', num(month(TempDate)), null()) AS Quarter,&lt;/P&gt;&lt;P&gt;date(monthstart(TempDate), 'MMM-YYYY') AS MonthYear,&lt;/P&gt;&lt;P&gt;week(TempDate)&amp;amp;'-'&amp;amp;Year(TempDate) AS WeekYear,&lt;/P&gt;&lt;P&gt;Year2Date(TempDate, 0, 1, $(vToday))*-1 AS CurYTDFlag,&lt;/P&gt;&lt;P&gt;Year2Date(TempDate,-1, 1, $(vToday))*-1 AS LastYTDFlag&lt;/P&gt;&lt;P&gt;RESIDENT TempCalendar&lt;/P&gt;&lt;P&gt;ORDER BY TempDate Asc;&lt;/P&gt;&lt;P&gt;drop table TempCalendar,DateTemp;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Sep 2010 09:25:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Format/m-p/205823#M62149</guid>
      <dc:creator />
      <dc:date>2010-09-17T09:25:50Z</dc:date>
    </item>
    <item>
      <title>Date Format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Format/m-p/205824#M62150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, if i take the DATE# function away and replace it with FLOOR function, it works but the years start from 1899.... when its supposed to start in 2000. 101 years off?... lol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Sep 2010 09:28:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Format/m-p/205824#M62150</guid>
      <dc:creator />
      <dc:date>2010-09-17T09:28:31Z</dc:date>
    </item>
    <item>
      <title>Date Format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Format/m-p/205825#M62151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Blaze&lt;/P&gt;&lt;P&gt;The problem is in the AUTOGENERATE statement - QV doesn't like the comparison operator.&lt;/P&gt;&lt;P&gt;I think what you need to do is to create a variable with the AUTOGENERATE count in it, and then use this variable:&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;Let vDateCount = vMaxDate - vMinDate + 1;&lt;BR /&gt;...&lt;BR /&gt;AUTOGENERATE $(vDateCount);&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Sep 2010 09:42:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Format/m-p/205825#M62151</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2010-09-17T09:42:41Z</dc:date>
    </item>
    <item>
      <title>Date Format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Format/m-p/205826#M62152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Jonathan&lt;/P&gt;&lt;P&gt;Thanks for the reply. The auto generate works fine I've used it in many other models. have you maybe got any other ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Sep 2010 09:45:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Format/m-p/205826#M62152</guid>
      <dc:creator />
      <dc:date>2010-09-17T09:45:21Z</dc:date>
    </item>
    <item>
      <title>Date Format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Format/m-p/205827#M62153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Blaze&lt;/P&gt;&lt;P&gt;You say it works fine but the error message you posted seems to say otherwise. For some reason QV is complaining about the &amp;lt;= symbol.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Sep 2010 09:49:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Format/m-p/205827#M62153</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2010-09-17T09:49:38Z</dc:date>
    </item>
    <item>
      <title>Date Format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Format/m-p/205828#M62154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it working. I thought id try a LEFT JOIN and it worked. Wat it was doing initially was creating doubles of the dates and in the end i had dates that i never needed. Then it autogenerated dates from years back because the format was incorrect. thanks anyways man.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Sep 2010 10:18:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Format/m-p/205828#M62154</guid>
      <dc:creator />
      <dc:date>2010-09-17T10:18:29Z</dc:date>
    </item>
  </channel>
</rss>

