<?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: How num() works for any date value as an argument? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-num-works-for-any-date-value-as-an-argument/m-p/487516#M182102</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at this excellent post:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.qlikviewaddict.com/2012/07/dates-in-qlikview-part-1.html" title="http://www.qlikviewaddict.com/2012/07/dates-in-qlikview-part-1.html"&gt;QlikView Addict: Dates in QlikView - Part 1&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Oct 2013 06:57:42 GMT</pubDate>
    <dc:creator>struniger</dc:creator>
    <dc:date>2013-10-18T06:57:42Z</dc:date>
    <item>
      <title>How num() works for any date value as an argument?</title>
      <link>https://community.qlik.com/t5/QlikView/How-num-works-for-any-date-value-as-an-argument/m-p/487515#M182101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello,&lt;BR /&gt;I am new to Qlikview. I was looking at the piece of code:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;let &lt;STRONG style="color: #808080;"&gt;&lt;EM&gt;&lt;STRONG style="color: #808080;"&gt;&lt;EM&gt;v_counter&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;=&lt;SPAN style="color: #0000ff;"&gt;Num&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;addmonths&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;MonthStart&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Today&lt;/SPAN&gt;()),-3)); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;I ran each of the subfunctions seperately in order to learn what was being returned. Now, addmonths of the above example returns 7/1/2013&amp;nbsp; ///Please note: this format is MM/DD/YYYY&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Num() function must be working on this date and it returned 41456. So, value of v_counter is 41456.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;My question is how Num works on this date value as an argument and how it converted 7/1/2013 to 41456? I serched in Help but could not extract much.&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 06:51:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-num-works-for-any-date-value-as-an-argument/m-p/487515#M182101</guid>
      <dc:creator />
      <dc:date>2013-10-18T06:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: How num() works for any date value as an argument?</title>
      <link>https://community.qlik.com/t5/QlikView/How-num-works-for-any-date-value-as-an-argument/m-p/487516#M182102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at this excellent post:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.qlikviewaddict.com/2012/07/dates-in-qlikview-part-1.html" title="http://www.qlikviewaddict.com/2012/07/dates-in-qlikview-part-1.html"&gt;QlikView Addict: Dates in QlikView - Part 1&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 06:57:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-num-works-for-any-date-value-as-an-argument/m-p/487516#M182102</guid>
      <dc:creator>struniger</dc:creator>
      <dc:date>2013-10-18T06:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: How num() works for any date value as an argument?</title>
      <link>https://community.qlik.com/t5/QlikView/How-num-works-for-any-date-value-as-an-argument/m-p/487517#M182103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In every system like excel or qlikview or anyother software Date is stored in num format like if u write&lt;/P&gt;&lt;P&gt;date(1) it will give u '31-12-1899' which is minimum date stored in qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like this it every date is stored as num so when u use num() function is returns u the number of that date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this clears ur doubt !!! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 07:10:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-num-works-for-any-date-value-as-an-argument/m-p/487517#M182103</guid>
      <dc:creator>rajni_batra</dc:creator>
      <dc:date>2013-10-18T07:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: How num() works for any date value as an argument?</title>
      <link>https://community.qlik.com/t5/QlikView/How-num-works-for-any-date-value-as-an-argument/m-p/487518#M182104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its the function of qlikview, just like excel&lt;/P&gt;&lt;P&gt;Read this:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-3102" style="font-size: 10pt; line-height: 1.5em;"&gt;http://community.qlik.com/docs/DOC-3102&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and this:&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2012/06/07/get-the-dates-right"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2012/06/07/get-the-dates-right&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 07:12:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-num-works-for-any-date-value-as-an-argument/m-p/487518#M182104</guid>
      <dc:creator />
      <dc:date>2013-10-18T07:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: How num() works for any date value as an argument?</title>
      <link>https://community.qlik.com/t5/QlikView/How-num-works-for-any-date-value-as-an-argument/m-p/487519#M182105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rajni &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;!!!&lt;/P&gt;&lt;P&gt;I understood the concept and I checked it like date(41456), which returned 7/1/2013&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 07:20:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-num-works-for-any-date-value-as-an-argument/m-p/487519#M182105</guid>
      <dc:creator />
      <dc:date>2013-10-18T07:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: How num() works for any date value as an argument?</title>
      <link>https://community.qlik.com/t5/QlikView/How-num-works-for-any-date-value-as-an-argument/m-p/487520#M182106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The first thing you need to know about dates in QlikView is that they are really stored as a dual value. &lt;BR /&gt;This value contains both a string (such as "01/01/2012") representing the date and number (such as "40909") defining the number of days since the epoch date. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Epoch date is a date chosen as the origin of a particular era.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;QlikView epoch date is the same as the Oracle epoch date, 30th December 1899.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Try creating a text object in QlikView and add the following expression:&lt;/P&gt;&lt;P&gt;=num(makedate(1899,12,30)) &lt;/P&gt;&lt;P&gt;you will get result 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and now change the expression to &lt;/P&gt;&lt;P&gt;=num(makedate(1900,1,1)) &lt;/P&gt;&lt;P&gt;you will get result 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means 30th December 1899 numeric value is 1, 1st January 1900 numeric value is 2 and so on.&lt;/P&gt;&lt;P&gt;Dates prior to this base date are simply stored as a negative number of days. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlikgards,&lt;/P&gt;&lt;P&gt;Abhijit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 07:42:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-num-works-for-any-date-value-as-an-argument/m-p/487520#M182106</guid>
      <dc:creator>AbhijitBansode</dc:creator>
      <dc:date>2013-10-18T07:42:59Z</dc:date>
    </item>
  </channel>
</rss>

