<?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 Calendar problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calendar-problem/m-p/297380#M1199712</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm going crazy I seem to have a problem again.&lt;/P&gt;&lt;P&gt;For some reason the variabes start and end in my code don't contain the dates and nothing helps!&lt;BR /&gt;(start and end variables should contain the starting and end dates, they contain weird numbers??..)&lt;/P&gt;&lt;P&gt;I attached the ex. and the output-I'd appreciate any help..&lt;BR /&gt;Thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Dec 2010 20:39:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-12-30T20:39:47Z</dc:date>
    <item>
      <title>Calendar problem</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-problem/m-p/297377#M1199707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;I'm trying to create a calendar that ranges between the min (20101229)and max(20101230) dates I have in a table.&lt;BR /&gt;But, the following code doesn't work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tmp:&lt;/P&gt;&lt;P&gt;&lt;B&gt;LOAD&lt;BR /&gt;&lt;/B&gt;min(Date) as MinDate&lt;BR /&gt;max(Date) as MaxDate&lt;BR /&gt;RESIDENT Orders;&lt;BR /&gt;&lt;B&gt;LET&lt;/B&gt; &lt;B&gt;&lt;I&gt;Start&lt;/I&gt;&lt;/B&gt; = floor(YearStart(peek('MinDate')));&lt;BR /&gt;&lt;B&gt;LET&lt;/B&gt; &lt;B&gt;&lt;I&gt;End&lt;/I&gt;&lt;/B&gt; = floor(YearEnd(peek('MaxDate')));&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;For some reason I get weird dates in Start and End variables.&lt;BR /&gt;For ex. End gets '20101487' - What's wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Dec 2010 17:26:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-problem/m-p/297377#M1199707</guid>
      <dc:creator />
      <dc:date>2010-12-30T17:26:50Z</dc:date>
    </item>
    <item>
      <title>Calendar problem</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-problem/m-p/297378#M1199709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;It's likely a conversion/formatting issue. Dates in QlikView are numeric values starting 31/12/1899 (Date 1). Try instead&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;LOADDate#(min(Date), 'YYYYMMDD') as MinDateDate#(max(Date), 'YYYYMMDD') as MaxDateRESIDENT Orders;LET Start = floor(YearStart(peek('MinDate')));LET End = floor(YearEnd(peek('MaxDate')));&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Dec 2010 17:50:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-problem/m-p/297378#M1199709</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-12-30T17:50:21Z</dc:date>
    </item>
    <item>
      <title>Calendar problem</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-problem/m-p/297379#M1199710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that was the problem. Thank you very much!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Dec 2010 18:07:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-problem/m-p/297379#M1199710</guid>
      <dc:creator />
      <dc:date>2010-12-30T18:07:58Z</dc:date>
    </item>
    <item>
      <title>Calendar problem</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-problem/m-p/297380#M1199712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm going crazy I seem to have a problem again.&lt;/P&gt;&lt;P&gt;For some reason the variabes start and end in my code don't contain the dates and nothing helps!&lt;BR /&gt;(start and end variables should contain the starting and end dates, they contain weird numbers??..)&lt;/P&gt;&lt;P&gt;I attached the ex. and the output-I'd appreciate any help..&lt;BR /&gt;Thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Dec 2010 20:39:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-problem/m-p/297380#M1199712</guid>
      <dc:creator />
      <dc:date>2010-12-30T20:39:47Z</dc:date>
    </item>
    <item>
      <title>Calendar problem</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-problem/m-p/297381#M1199714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Try using Make date function.&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Id,&lt;/P&gt;&lt;P&gt;Sale,&lt;/P&gt;&lt;P&gt;makedate(2010,01,01) as Period_date,&lt;/P&gt;&lt;P&gt;num(makedate(2010,01,01)) as Period_date_Num&lt;/P&gt;&lt;P&gt;from Orders;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;follow the steps&lt;/P&gt;&lt;P&gt;1)create 2 variables Vstart and Vend.&lt;/P&gt;&lt;P&gt;2)create calendar object, , In variables select Vstart, In Min values write exp Min(Period_date) and max values exp Max(Period_date)&lt;/P&gt;&lt;P&gt;3) create calendar object , follow step 2&lt;/P&gt;&lt;P&gt;4)Change format to date in Number Tab for both calendar object&lt;/P&gt;&lt;P&gt;5) Chart expression :&lt;/P&gt;&lt;P&gt;SUM(IF(Period_date_Num &amp;gt; Vstart AND Period_date_Num &amp;lt; Vend , Costs))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you will get the range of cost between the selected dates in calendar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prabhu&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Dec 2010 06:31:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-problem/m-p/297381#M1199714</guid>
      <dc:creator />
      <dc:date>2010-12-31T06:31:25Z</dc:date>
    </item>
    <item>
      <title>Calendar problem</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-problem/m-p/297382#M1199716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Make sure that the date format from the excel sheet is YYYYMMDD. You can check this piece of script, based on yours, that should work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Data:LOAD * INLINE [OID, CID, DateA, 1, 20100101B, 2, 20100223C, 3, 20101205]; DateMinMax:LOAD Date(Date#(Max(Date), 'YYYYMMDD')) AS MaxDate, Date(Date#(Min(Date), 'YYYYMMDD')) AS MinDateRESIDENT Data; LET vMaxDate = Num(Peek('MaxDate', 0)); // This will return the date in QlikView numeric format 40517 which epoch is 1899/12/31LET vMinDate = Num(Peek('MinDate', 0)); // Use Date(vMinDate) in a text object and you should get the proper date representation DROP TABLE DateMinMax;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I've added a Date() representation function to the Date#() existing.&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Dec 2010 08:34:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-problem/m-p/297382#M1199716</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-12-31T08:34:14Z</dc:date>
    </item>
    <item>
      <title>Calendar problem</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-problem/m-p/297383#M1199717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks it really helped but now I'm not sure if I should perform a join between sorders table and Calendar table since choosing a date doesn't filter the correct orders.&lt;/P&gt;&lt;P&gt;See the attached code please.&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Dec 2010 13:47:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-problem/m-p/297383#M1199717</guid>
      <dc:creator />
      <dc:date>2010-12-31T13:47:47Z</dc:date>
    </item>
    <item>
      <title>Calendar problem</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-problem/m-p/297384#M1199719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I think it should be as simple as change&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Date(TempDate) AS CalendarDate,&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;by&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Date(TempDate) AS &lt;B&gt;Date&lt;/B&gt;,&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Date from table "sorders" is the date field I'm assuming you want to use.&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Dec 2010 14:04:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-problem/m-p/297384#M1199719</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-12-31T14:04:16Z</dc:date>
    </item>
    <item>
      <title>Calendar problem</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-problem/m-p/297385#M1199721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. what about the other date format functions such as Day(TempDate) AS CalendarDayOfMonth ?That's why I thought to use join.&lt;/P&gt;&lt;P&gt;2. In addition the date list displays also numeric dates not only date format.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Dec 2010 14:16:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-problem/m-p/297385#M1199721</guid>
      <dc:creator />
      <dc:date>2010-12-31T14:16:56Z</dc:date>
    </item>
    <item>
      <title>Calendar problem</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-problem/m-p/297386#M1199722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK I think it all works now (if I'm not missing aything..).&lt;BR /&gt;I attached the last file for example.&lt;/P&gt;&lt;P&gt;Thanks for all the help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Dec 2010 15:41:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-problem/m-p/297386#M1199722</guid>
      <dc:creator />
      <dc:date>2010-12-31T15:41:34Z</dc:date>
    </item>
  </channel>
</rss>

