<?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: Help Before in Script ETL in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-Before-in-Script-ETL/m-p/83682#M607429</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot translate this kind of expression 1:1 into a script statement, because&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;before and after are not available in your load script. There isn't even a function that comes close. You can however mimic this behavior using some pretty complex code, but that wouldn't be very efficient.&lt;/LI&gt;&lt;LI&gt;there is no object with rows/columns to pick values before() / after(). There is just a single internal table with rows that you can GROUP BY into another table.&lt;/LI&gt;&lt;LI&gt;in your expression you can easily aggregate fields from different tables, but in a script that would require explicit JOINS.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMHO it would be better if you describe your internal table(s) in your data model and the expected output per set of GROUP BY fields. Would that be possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Feb 2018 09:21:11 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2018-02-26T09:21:11Z</dc:date>
    <item>
      <title>Help Before in Script ETL</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Before-in-Script-ETL/m-p/83680#M607427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Hello! I need help, I have this code in a graphic but I want to write it in the ETL script&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;(sum(I_INDICADOR)+rangesum(before(sum(I_INDICADOR),1,12))+after(sum(IMPORTE)+rangesum(After(sum(IMPORTE),1,12))))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;thanks!!!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Feb 2018 21:59:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Before-in-Script-ETL/m-p/83680#M607427</guid>
      <dc:creator>javiervzaplana</dc:creator>
      <dc:date>2018-02-25T21:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: Help Before in Script ETL</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Before-in-Script-ETL/m-p/83681#M607428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;rangesum works both in script and chart but after works only in chart. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2018 03:05:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Before-in-Script-ETL/m-p/83681#M607428</guid>
      <dc:creator>shilpan</dc:creator>
      <dc:date>2018-02-26T03:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help Before in Script ETL</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Before-in-Script-ETL/m-p/83682#M607429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot translate this kind of expression 1:1 into a script statement, because&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;before and after are not available in your load script. There isn't even a function that comes close. You can however mimic this behavior using some pretty complex code, but that wouldn't be very efficient.&lt;/LI&gt;&lt;LI&gt;there is no object with rows/columns to pick values before() / after(). There is just a single internal table with rows that you can GROUP BY into another table.&lt;/LI&gt;&lt;LI&gt;in your expression you can easily aggregate fields from different tables, but in a script that would require explicit JOINS.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMHO it would be better if you describe your internal table(s) in your data model and the expected output per set of GROUP BY fields. Would that be possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2018 09:21:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Before-in-Script-ETL/m-p/83682#M607429</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2018-02-26T09:21:11Z</dc:date>
    </item>
  </channel>
</rss>

