<?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: urgent help needed in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/urgent-help-needed/m-p/628246#M230791</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try ....&lt;/P&gt;&lt;P&gt;date(field_name) as date_field_name&lt;/P&gt;&lt;P&gt;day(field_name) as day_field_name&lt;/P&gt;&lt;P&gt;week(field_name) as week_field_name&lt;/P&gt;&lt;P&gt;month(field_name) as month_field_name&lt;/P&gt;&lt;P&gt;year(field_name) as year_field_name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;....&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 May 2014 14:50:24 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-05-26T14:50:24Z</dc:date>
    <item>
      <title>urgent help needed</title>
      <link>https://community.qlik.com/t5/QlikView/urgent-help-needed/m-p/628244#M230789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having a csv file which I have used in load script. It is having 2 date fields named contract_start_date and contract_end_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having a chart where I want to do the following 2 things&lt;/P&gt;&lt;P&gt;1) add one month to all the values of contract_start_date field (tried using&amp;nbsp; AddMonths( CONTRACT_START_DATE,1)) and &lt;/P&gt;&lt;P&gt;2) find the difference between contract_end_date and today() in months (tried using CONTRACT_END_DATE-Today())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but both of them are not working. Can anyone please help me to solve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is my qlikview file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 14:38:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/urgent-help-needed/m-p/628244#M230789</guid>
      <dc:creator />
      <dc:date>2014-05-26T14:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: urgent help needed</title>
      <link>https://community.qlik.com/t5/QlikView/urgent-help-needed/m-p/628245#M230790</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;Try to format dates during the load using date function. If you need the hour, split in two fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 14:45:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/urgent-help-needed/m-p/628245#M230790</guid>
      <dc:creator>Marcio_Campestrini</dc:creator>
      <dc:date>2014-05-26T14:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: urgent help needed</title>
      <link>https://community.qlik.com/t5/QlikView/urgent-help-needed/m-p/628246#M230791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try ....&lt;/P&gt;&lt;P&gt;date(field_name) as date_field_name&lt;/P&gt;&lt;P&gt;day(field_name) as day_field_name&lt;/P&gt;&lt;P&gt;week(field_name) as week_field_name&lt;/P&gt;&lt;P&gt;month(field_name) as month_field_name&lt;/P&gt;&lt;P&gt;year(field_name) as year_field_name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;....&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 14:50:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/urgent-help-needed/m-p/628246#M230791</guid>
      <dc:creator />
      <dc:date>2014-05-26T14:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: urgent help needed</title>
      <link>https://community.qlik.com/t5/QlikView/urgent-help-needed/m-p/628247#M230792</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;are you sure your dates are under date format and not looking as dates&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 14:50:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/urgent-help-needed/m-p/628247#M230792</guid>
      <dc:creator />
      <dc:date>2014-05-26T14:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: urgent help needed</title>
      <link>https://community.qlik.com/t5/QlikView/urgent-help-needed/m-p/628248#M230793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kavita,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AddMonths will do the trick. I think the problem is when you pull the data in the data isn't in a date format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As mentioned by Marcio try changing the field to a date format by doing a date in the script. One this has been resolved I'm sure you will then be able to do the calculations you need to on the date fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 14:52:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/urgent-help-needed/m-p/628248#M230793</guid>
      <dc:creator />
      <dc:date>2014-05-26T14:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: urgent help needed</title>
      <link>https://community.qlik.com/t5/QlikView/urgent-help-needed/m-p/628249#M230794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried formatting the date using date functions but its not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 04:22:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/urgent-help-needed/m-p/628249#M230794</guid>
      <dc:creator />
      <dc:date>2014-05-27T04:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: urgent help needed</title>
      <link>https://community.qlik.com/t5/QlikView/urgent-help-needed/m-p/628250#M230795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Date format is the issue. The date fields are not really dates, rather strings. You have to get the proper timestamp using date parsing function - Date#(). I have done for the last expression in the attached qvw. It would be better if you load the dates using Date#(), like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD BILL_PROFILE_ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date#(CONTRACT_START_DATE, 'DD-MMM-YY hh.mm.ss.ffffff tt') as CONTRACT_START_DATE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CONTRACT_TERMS,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date#(CONTRACT_END_DATE, 'DD-MM-YYYY') as CONTRACT_END_DATE&lt;/P&gt;&lt;P&gt;From &amp;lt;&amp;gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 04:41:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/urgent-help-needed/m-p/628250#M230795</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-05-27T04:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: urgent help needed</title>
      <link>https://community.qlik.com/t5/QlikView/urgent-help-needed/m-p/628251#M230796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TRY THIS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For&amp;nbsp; 1st Query :-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;this will give the result in numeric format&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=(DATE(date#(CONTRACT_END_DATE,'DD-MM-YYYY'),'M/DD/YYYY')-Today())&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OR&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;this will give the result in date format&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=DATE(DATE(date#(CONTRACT_END_DATE,'DD-MM-YYYY'),'M/DD/YYYY')-Today())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For 2nd Query :-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=DATE(DATE#(SubField(CONTRACT_START_DATE,' ',1),'DD-MMM-YY'),'M/DD/YYYY')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 04:44:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/urgent-help-needed/m-p/628251#M230796</guid>
      <dc:creator />
      <dc:date>2014-05-27T04:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: urgent help needed</title>
      <link>https://community.qlik.com/t5/QlikView/urgent-help-needed/m-p/628252#M230797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;Hi. &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRY THIS:&lt;STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;For 1st query:_&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;= AddMonths( Date#(CONTRACT_START_DATE,'DD-MMM-YY hh.mm.ssssss tt'),1)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;For 2nd Query :-&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;this will give the result in numeric format&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=(DATE(date#(CONTRACT_END_DATE,'DD-MM-YYYY'),'M/DD/YYYY')-Today())&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OR&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;this will give the result in date format&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=DATE(DATE(date#(CONTRACT_END_DATE,'DD-MM-YYYY'),'M/DD/YYYY')-Today())&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 05:41:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/urgent-help-needed/m-p/628252#M230797</guid>
      <dc:creator />
      <dc:date>2014-05-27T05:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: urgent help needed</title>
      <link>https://community.qlik.com/t5/QlikView/urgent-help-needed/m-p/628253#M230798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot tresesco, Its working now&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 11:46:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/urgent-help-needed/m-p/628253#M230798</guid>
      <dc:creator />
      <dc:date>2014-06-02T11:46:45Z</dc:date>
    </item>
  </channel>
</rss>

