<?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: Question on Year(Date) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Question-on-Year-Date/m-p/783126#M1047929</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;thanks for your reply.&lt;/P&gt;&lt;P&gt;This is some of the dates in the SDate field - looked like a valid date but it is not returning the Year &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="YearDate.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/71691_YearDate.jpg" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Nov 2014 04:43:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-11-20T04:43:23Z</dc:date>
    <item>
      <title>Question on Year(Date)</title>
      <link>https://community.qlik.com/t5/QlikView/Question-on-Year-Date/m-p/783124#M1047924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to use the calendar Master script to create the Year dimension for my data set.&lt;/P&gt;&lt;P&gt;However, i am not sure why some of the year appears as '-' (see Row 7).&lt;/P&gt;&lt;P&gt;Am i doing something wrong? Or do need to first format my date field upon loading?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="284"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="17" width="64"&gt;Row&lt;/TD&gt;&lt;TD class="xl65" width="98"&gt;Year&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="122"&gt;sum(Value)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;Row 1&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none;"&gt;2009&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;279.49&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;Row 2&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none;"&gt;2010&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;0.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;Row 3&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none;"&gt;2011&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;191,826.79&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;Row 4&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none;"&gt;2012&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;8,593.27&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;Row 5&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none;"&gt;2013&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;101,875.40&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;Row 6&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none;"&gt;2014&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;2,015,958.22&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;Row 7&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;5,142,751.10&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SDate is the date field I am using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CalendarMaster:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(SDate) AS SDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(SDate) AS Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Q' &amp;amp; Ceil(Month(SDate) / 3) AS Quarter,&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(SDate) As Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Day(SDate) As Day,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Week(SDate) As Week;&lt;/P&gt;&lt;P&gt;Load Date(MinDate + IterNo() -1 ) AS SDate While (MinDate + IterNo() - 1) &amp;lt;= Num(MaxDate);&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Min(SDate) AS MinDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max(SDate) AS MaxDate&lt;/P&gt;&lt;P&gt;RESIDENT FactSales;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Derrell&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 04:26:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-on-Year-Date/m-p/783124#M1047924</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-20T04:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Year(Date)</title>
      <link>https://community.qlik.com/t5/QlikView/Question-on-Year-Date/m-p/783125#M1047926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;seems that there are values in your field 'Value' without a Date (or without a proper Date according to the calendar) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 04:36:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-on-Year-Date/m-p/783125#M1047926</guid>
      <dc:creator>danieloberbilli</dc:creator>
      <dc:date>2014-11-20T04:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Year(Date)</title>
      <link>https://community.qlik.com/t5/QlikView/Question-on-Year-Date/m-p/783126#M1047929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;thanks for your reply.&lt;/P&gt;&lt;P&gt;This is some of the dates in the SDate field - looked like a valid date but it is not returning the Year &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="YearDate.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/71691_YearDate.jpg" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 04:43:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-on-Year-Date/m-p/783126#M1047929</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-20T04:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Year(Date)</title>
      <link>https://community.qlik.com/t5/QlikView/Question-on-Year-Date/m-p/783127#M1047931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think its because you first have to define SDate as a Date - then you can interpret the Date as a Year. So just move the line:&lt;/P&gt;&lt;P&gt;Year(SDate) as Year &lt;/P&gt;&lt;P&gt;to a preceeding load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CalendarMaster:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;Year(SDate) as Year&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 04:49:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-on-Year-Date/m-p/783127#M1047931</guid>
      <dc:creator>danieloberbilli</dc:creator>
      <dc:date>2014-11-20T04:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Year(Date)</title>
      <link>https://community.qlik.com/t5/QlikView/Question-on-Year-Date/m-p/783128#M1047933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in your original load your SDate is interpreted as a Date field,&lt;/P&gt;&lt;P&gt;afterwards in the preceeding load the date field is interpreted&amp;nbsp; to a year&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 04:52:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-on-Year-Date/m-p/783128#M1047933</guid>
      <dc:creator>danieloberbilli</dc:creator>
      <dc:date>2014-11-20T04:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Year(Date)</title>
      <link>https://community.qlik.com/t5/QlikView/Question-on-Year-Date/m-p/783129#M1047934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the strange thing is that it works for some, but some it does not work.&lt;/P&gt;&lt;P&gt;in the preceeding load, i have defined SDate field as date =&amp;gt; Date(SDate) as SDate&lt;/P&gt;&lt;P&gt;but it still yield the same result&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 05:09:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-on-Year-Date/m-p/783129#M1047934</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-20T05:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Year(Date)</title>
      <link>https://community.qlik.com/t5/QlikView/Question-on-Year-Date/m-p/783130#M1047943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no - don't define the date in the preceeding load - you have to move your Year()-line there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So keep your date() in the normal load (this will be processed first in the scriptrun)&lt;/P&gt;&lt;P&gt;the year() line will be processed based on the date-interpretation from the normal load in a second step by the script run.&amp;nbsp; Please see again the scripting example I gave you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 05:12:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-on-Year-Date/m-p/783130#M1047943</guid>
      <dc:creator>danieloberbilli</dc:creator>
      <dc:date>2014-11-20T05:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Year(Date)</title>
      <link>https://community.qlik.com/t5/QlikView/Question-on-Year-Date/m-p/783131#M1047945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Derrell - just realized that you are dealing already with several preceeding loads. So just put the one with the year() on top o the others and it should work fine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 05:15:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-on-Year-Date/m-p/783131#M1047945</guid>
      <dc:creator>danieloberbilli</dc:creator>
      <dc:date>2014-11-20T05:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Question on Year(Date)</title>
      <link>https://community.qlik.com/t5/QlikView/Question-on-Year-Date/m-p/783132#M1047946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Capture19.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/71692_Capture19.PNG.png" style="width: 620px; height: 225px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 05:17:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-on-Year-Date/m-p/783132#M1047946</guid>
      <dc:creator>danieloberbilli</dc:creator>
      <dc:date>2014-11-20T05:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Year(Date)</title>
      <link>https://community.qlik.com/t5/QlikView/Question-on-Year-Date/m-p/783133#M1047947</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;Handle this issue in front end&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use&lt;/P&gt;&lt;P&gt;Year(SDate) as calculated Dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 05:22:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-on-Year-Date/m-p/783133#M1047947</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-11-20T05:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Year(Date)</title>
      <link>https://community.qlik.com/t5/QlikView/Question-on-Year-Date/m-p/783134#M1047948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Daniel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 05:30:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-on-Year-Date/m-p/783134#M1047948</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-20T05:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Year(Date)</title>
      <link>https://community.qlik.com/t5/QlikView/Question-on-Year-Date/m-p/783135#M1047949</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 think your master calendar script is OK - I think the problem is that some of your transaction dates have a time component, while the master calendar has only days (integer). This means that the transaction dates do not map into the master calendar and the '-' year value is 'missing'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure that the transaction dates have no time component - in the load statement that loads the value field, make sure the date is defined something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Floor(SDate)) As SDate,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You don't need the Floor in the calendar because you are working with integers already.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 05:30:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-on-Year-Date/m-p/783135#M1047949</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-11-20T05:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Year(Date)</title>
      <link>https://community.qlik.com/t5/QlikView/Question-on-Year-Date/m-p/783136#M1047950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, I agree with the posting of Jonathan Dienst&amp;nbsp;&amp;nbsp; - you should definitely try this out. I just saw that I was wrong regarding interpretation of the date fields (which would be actually done with date#().&lt;/P&gt;&lt;P&gt;Kind Regards from Flinders Street...good to see some people from Melbourne here &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 05:37:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-on-Year-Date/m-p/783136#M1047950</guid>
      <dc:creator>danieloberbilli</dc:creator>
      <dc:date>2014-11-20T05:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Year(Date)</title>
      <link>https://community.qlik.com/t5/QlikView/Question-on-Year-Date/m-p/783137#M1047951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Jonathan. Works like a charm! &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, 24 Nov 2014 23:30:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-on-Year-Date/m-p/783137#M1047951</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-24T23:30:38Z</dc:date>
    </item>
  </channel>
</rss>

