<?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 to create a current date column and load the current date for all the values in the sheet in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-create-a-current-date-column-and-load-the-current-date/m-p/1129506#M898027</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, This is great. So does the current date change when I change it in my computer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 23 Jul 2016 18:57:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-07-23T18:57:11Z</dc:date>
    <item>
      <title>How to create a current date column and load the current date for all the values in the sheet</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-current-date-column-and-load-the-current-date/m-p/1129502#M898023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Hi Everyone,&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;I am trying to find the age of a a few products on a list, meaning the products were moved to a particular location and I am trying to find how long they have been there in that location. The spreadsheet that I have attached has the date the products were moved on along with material etc. I want to build a chart that shows the age i.e. the difference between today's date and the date moved for each product. I'm finding it difficult to create a current date column in the Qlikview reloading script. My idea is once I create the current date column with the current date, I can create another column that will find the difference between these two date columns and provide me the age or the time the products have been in the location. &lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Could you please help me out in creating the current date column. What script do I use and how do I do it. I tried using the Today() function but did not work.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Thanks,&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-current-date-column-and-load-the-current-date/m-p/1129502#M898023</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a current date column and load the current date for all the values in the sheet</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-current-date-column-and-load-the-current-date/m-p/1129503#M898024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14692685735818098" jivemacro_uid="_14692685735818098" modifiedtitle="true"&gt;
&lt;P style="font-size: 13.3333px;"&gt;Let vToday = Today();&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;Data:&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;LOAD DateMoved, &lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Material,&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Storage location],&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '$(vToday)' as [Current Date],&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Interval('$(vToday)'- DateMoved, 'dd') as [Age In Days]&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;FROM&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;[Finished Goods Inventory - Copy.xlsx]&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Jul 2016 10:09:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-current-date-column-and-load-the-current-date/m-p/1129503#M898024</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-07-23T10:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a current date column and load the current date for all the values in the sheet</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-current-date-column-and-load-the-current-date/m-p/1129504#M898025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tamil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you. It worked. This is great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is what date does Qlikview take? Does it take the date in your computer or does it have its own timer. I changed the date in my computer to tomorrow's date and reloaded the script but the change did not reflect in Qlikview. Hence the doubt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much once again. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Jul 2016 16:24:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-current-date-column-and-load-the-current-date/m-p/1129504#M898025</guid>
      <dc:creator />
      <dc:date>2016-07-23T16:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a current date column and load the current date for all the values in the sheet</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-current-date-column-and-load-the-current-date/m-p/1129505#M898026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14692989424446172" jivemacro_uid="_14692989424446172"&gt;
&lt;P&gt;LOAD DateMoved&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,today() - DateMoved as Age&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,Material&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,[Storage location]&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;
&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result looks like following:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="132286" alt="Screenshot_3.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/132286_Screenshot_3.png" style="height: 189px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, suggest you to sort the data ascending or otherwise in the bar chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the attachment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Jul 2016 18:36:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-current-date-column-and-load-the-current-date/m-p/1129505#M898026</guid>
      <dc:creator>MindaugasBacius</dc:creator>
      <dc:date>2016-07-23T18:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a current date column and load the current date for all the values in the sheet</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-current-date-column-and-load-the-current-date/m-p/1129506#M898027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, This is great. So does the current date change when I change it in my computer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Jul 2016 18:57:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-current-date-column-and-load-the-current-date/m-p/1129506#M898027</guid>
      <dc:creator />
      <dc:date>2016-07-23T18:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a current date column and load the current date for all the values in the sheet</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-current-date-column-and-load-the-current-date/m-p/1129507#M898028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I copied the below explanation from help file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;today( [timer_mode] )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Returns the current date from the system clock. The timer_mode may have the following values:&lt;/P&gt;&lt;P&gt;0 Date at script run&lt;/P&gt;&lt;P&gt;1 Date at function call&lt;/P&gt;&lt;P&gt;2 Date when the document was opened&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Default timer_mode is 2. The timer_mode = 1 should be used with caution, since it polls the operating system every second and hence could slow down the system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did a test by changing the system time and it's working fine. I am using Qlikview version 12. You can test the today function in front end. In textbox, try like =Today(), =Today(0).&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN class="Italic" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Jul 2016 06:48:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-current-date-column-and-load-the-current-date/m-p/1129507#M898028</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-07-24T06:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a current date column and load the current date for all the values in the sheet</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-current-date-column-and-load-the-current-date/m-p/1129508#M898029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tamil. It works now. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 14:57:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-current-date-column-and-load-the-current-date/m-p/1129508#M898029</guid>
      <dc:creator />
      <dc:date>2016-07-26T14:57:24Z</dc:date>
    </item>
  </channel>
</rss>

