<?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 calculation in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/calculation-in-script/m-p/298026#M110554</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure how you calculate it (the expression for it) but you could create any field as an operation of other fields, during reload...&lt;/P&gt;&lt;P&gt;For example, if your code is similar to this:&lt;/P&gt;&lt;P&gt;load ID, Joining_Date, Separation_Date from.... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create something like this:&lt;/P&gt;&lt;P&gt;Load ID,Joining_Date, Separation_Date, Separation_Date- Joining_Date as Duration from... &lt;/P&gt;&lt;P&gt;(that gives you the difference in days)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Jun 2011 10:56:04 GMT</pubDate>
    <dc:creator>erichshiino</dc:creator>
    <dc:date>2011-06-17T10:56:04Z</dc:date>
    <item>
      <title>calculation in script</title>
      <link>https://community.qlik.com/t5/QlikView/calculation-in-script/m-p/298024#M110552</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;In the script i have 'date of joining' and 'date of seperation', can i calculate the 'vintage' in the script itself? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 10:20:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculation-in-script/m-p/298024#M110552</guid>
      <dc:creator />
      <dc:date>2011-06-17T10:20:10Z</dc:date>
    </item>
    <item>
      <title>calculation in script</title>
      <link>https://community.qlik.com/t5/QlikView/calculation-in-script/m-p/298025#M110553</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You can use Interval() and Interval#() function for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Look into Help for more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 10:25:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculation-in-script/m-p/298025#M110553</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-06-17T10:25:11Z</dc:date>
    </item>
    <item>
      <title>calculation in script</title>
      <link>https://community.qlik.com/t5/QlikView/calculation-in-script/m-p/298026#M110554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure how you calculate it (the expression for it) but you could create any field as an operation of other fields, during reload...&lt;/P&gt;&lt;P&gt;For example, if your code is similar to this:&lt;/P&gt;&lt;P&gt;load ID, Joining_Date, Separation_Date from.... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create something like this:&lt;/P&gt;&lt;P&gt;Load ID,Joining_Date, Separation_Date, Separation_Date- Joining_Date as Duration from... &lt;/P&gt;&lt;P&gt;(that gives you the difference in days)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 10:56:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculation-in-script/m-p/298026#M110554</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-06-17T10:56:04Z</dc:date>
    </item>
    <item>
      <title>calculation in script</title>
      <link>https://community.qlik.com/t5/QlikView/calculation-in-script/m-p/298027#M110555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to slightly modify Erichs answer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(isnull(Separation_Date),today(),Separation_Date)-Joining_Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if there is no separation date then use todays date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in days.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 11:08:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculation-in-script/m-p/298027#M110555</guid>
      <dc:creator />
      <dc:date>2011-06-17T11:08:37Z</dc:date>
    </item>
    <item>
      <title>calculation in script</title>
      <link>https://community.qlik.com/t5/QlikView/calculation-in-script/m-p/298028#M110556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Erich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the reply... it worked&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 11:12:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculation-in-script/m-p/298028#M110556</guid>
      <dc:creator />
      <dc:date>2011-06-17T11:12:18Z</dc:date>
    </item>
  </channel>
</rss>

