<?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 Script/Formula Decipher in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Script-Formula-Decipher/m-p/1609040#M597223</link>
    <description>&lt;P&gt;Good Afternoon,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking at a report that was created before my time with the company and I am having trouble deciphering part of the load script and a formula that ties to the fields in question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The load statement&amp;nbsp; in question is below. &lt;STRONG&gt;VBRP.FKDAT&lt;/STRONG&gt; is Invoice Date FYI.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Year(VBRP.FKDAT) as KAL_FKDAT.Jahr_FKDAT,&lt;/P&gt;&lt;P&gt;The formula i am trying to decipher after that is:&amp;nbsp;&lt;/P&gt;&lt;P&gt;=if( num(month(today())) = 1 and num(day(today())) &amp;lt;= 5,&lt;BR /&gt;sum( {$&amp;lt; KAL_FKDAT.Jahr_FKDAT = {"$(=year(today())-2)"} &amp;gt;} VBRP.NETWR_EFF / fabs(VBRP.REPORT_USA_KURRF) ),&lt;BR /&gt;sum( {$&amp;lt; KAL_FKDAT.Jahr_FKDAT = {"$(=year(today())-1)"} &amp;gt;} VBRP.NETWR_EFF / fabs(VBRP.REPORT_USA_KURRF) )&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;Field&amp;nbsp;&lt;STRONG&gt;VBRP.REPORT_USA_KURRF&lt;/STRONG&gt; is Exchange Rate and field &lt;STRONG&gt;VBRP.NETWR_EFF&lt;/STRONG&gt; is the invoice amount.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anybody explain to me exactly what that function is doing?&lt;/P&gt;</description>
    <pubDate>Fri, 02 Aug 2019 19:31:07 GMT</pubDate>
    <dc:creator>JustinRamsey</dc:creator>
    <dc:date>2019-08-02T19:31:07Z</dc:date>
    <item>
      <title>Script/Formula Decipher</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Formula-Decipher/m-p/1609040#M597223</link>
      <description>&lt;P&gt;Good Afternoon,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking at a report that was created before my time with the company and I am having trouble deciphering part of the load script and a formula that ties to the fields in question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The load statement&amp;nbsp; in question is below. &lt;STRONG&gt;VBRP.FKDAT&lt;/STRONG&gt; is Invoice Date FYI.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Year(VBRP.FKDAT) as KAL_FKDAT.Jahr_FKDAT,&lt;/P&gt;&lt;P&gt;The formula i am trying to decipher after that is:&amp;nbsp;&lt;/P&gt;&lt;P&gt;=if( num(month(today())) = 1 and num(day(today())) &amp;lt;= 5,&lt;BR /&gt;sum( {$&amp;lt; KAL_FKDAT.Jahr_FKDAT = {"$(=year(today())-2)"} &amp;gt;} VBRP.NETWR_EFF / fabs(VBRP.REPORT_USA_KURRF) ),&lt;BR /&gt;sum( {$&amp;lt; KAL_FKDAT.Jahr_FKDAT = {"$(=year(today())-1)"} &amp;gt;} VBRP.NETWR_EFF / fabs(VBRP.REPORT_USA_KURRF) )&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;Field&amp;nbsp;&lt;STRONG&gt;VBRP.REPORT_USA_KURRF&lt;/STRONG&gt; is Exchange Rate and field &lt;STRONG&gt;VBRP.NETWR_EFF&lt;/STRONG&gt; is the invoice amount.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anybody explain to me exactly what that function is doing?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2019 19:31:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Formula-Decipher/m-p/1609040#M597223</guid>
      <dc:creator>JustinRamsey</dc:creator>
      <dc:date>2019-08-02T19:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Script/Formula Decipher</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Formula-Decipher/m-p/1609049#M597224</link>
      <description>&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;if today is Jan 1-5,&lt;BR /&gt;then return sum of ({Invoice Date Year = two years ago} invoice amount / absolute value (Exchange Rate)),&lt;BR /&gt;else return sum of ({Invoice Date Year = last year} invoice amount / absolute value (Exchange Rate))&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2019 19:55:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Formula-Decipher/m-p/1609049#M597224</guid>
      <dc:creator>lockematthewp</dc:creator>
      <dc:date>2019-08-02T19:55:54Z</dc:date>
    </item>
  </channel>
</rss>

