<?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 error in makeweekdate function. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/error-in-makeweekdate-function/m-p/169154#M40057</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you get unexpected results, you can break the problem into pieces and interpret what you see:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;DIV style="padding-left:30px;"&gt;year('2010-01-03') = 2010&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV style="padding-left:30px;"&gt;week('2010-01-03') = 53 (2010-01-03 is the last day of the last week of the PREVIOUS year, 2009)&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV style="padding-left:30px;"&gt;makeweekdate(2010,53) = 2011-01-03 (only 52 weeks in 2010, so week 53 of 2010 is interpreted as week 1 of 2011)&lt;/DIV&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Are you actually trying to accomplish something with this expression, or just fiddling with date functions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Aug 2010 23:21:48 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2010-08-19T23:21:48Z</dc:date>
    <item>
      <title>error in makeweekdate function.</title>
      <link>https://community.qlik.com/t5/QlikView/error-in-makeweekdate-function/m-p/169153#M40056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use Qlikview 7.&lt;/P&gt;&lt;P&gt;The makewekdate function&lt;/P&gt;&lt;P&gt;date(makeweekdate(year('2010-01-03'),Week('2010-01-03')),'YYYY-MM-DD')&lt;/P&gt;&lt;P&gt;gives 2011-01-03 instead fo 2009-12-28. i.e one year ahead. or am i making a big blunder?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mmahan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Aug 2010 22:45:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-in-makeweekdate-function/m-p/169153#M40056</guid>
      <dc:creator />
      <dc:date>2010-08-19T22:45:23Z</dc:date>
    </item>
    <item>
      <title>error in makeweekdate function.</title>
      <link>https://community.qlik.com/t5/QlikView/error-in-makeweekdate-function/m-p/169154#M40057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you get unexpected results, you can break the problem into pieces and interpret what you see:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;DIV style="padding-left:30px;"&gt;year('2010-01-03') = 2010&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV style="padding-left:30px;"&gt;week('2010-01-03') = 53 (2010-01-03 is the last day of the last week of the PREVIOUS year, 2009)&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV style="padding-left:30px;"&gt;makeweekdate(2010,53) = 2011-01-03 (only 52 weeks in 2010, so week 53 of 2010 is interpreted as week 1 of 2011)&lt;/DIV&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Are you actually trying to accomplish something with this expression, or just fiddling with date functions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Aug 2010 23:21:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-in-makeweekdate-function/m-p/169154#M40057</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-08-19T23:21:48Z</dc:date>
    </item>
    <item>
      <title>error in makeweekdate function.</title>
      <link>https://community.qlik.com/t5/QlikView/error-in-makeweekdate-function/m-p/169155#M40058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the explanation. Actually I am making a time dimension link with actual values from the DB date table column.. I take all the distinct created-on column values from my table and use those values to create the week field which is linked to my time dimension. So when there is this date coming from one of the distinct table values the makeweekdate converts it to the above one as i explained. So in my combo box drop down it shows the week date as 2011-01-03 for the table date 2010-01-03. Although it doesn't effect my display values and the application functions OK it just looks Odd. I have to write a if condition for grouping this date in 2009-12-28 week. i.e I am hard coding my script for this test. I don't want to hard code my script in general.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your explanation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Aug 2010 23:52:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-in-makeweekdate-function/m-p/169155#M40058</guid>
      <dc:creator />
      <dc:date>2010-08-22T23:52:11Z</dc:date>
    </item>
    <item>
      <title>error in makeweekdate function.</title>
      <link>https://community.qlik.com/t5/QlikView/error-in-makeweekdate-function/m-p/169156#M40059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you're just trying to get the first day of the week? That's the weekstart() function if so.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Aug 2010 17:23:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-in-makeweekdate-function/m-p/169156#M40059</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-08-23T17:23:26Z</dc:date>
    </item>
    <item>
      <title>error in makeweekdate function.</title>
      <link>https://community.qlik.com/t5/QlikView/error-in-makeweekdate-function/m-p/169157#M40060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's correct. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Aug 2010 18:03:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-in-makeweekdate-function/m-p/169157#M40060</guid>
      <dc:creator />
      <dc:date>2010-08-23T18:03:09Z</dc:date>
    </item>
  </channel>
</rss>

