<?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 Subroutine in Load with Call in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Subroutine-in-Load-with-Call/m-p/228157#M80213</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great !&lt;/P&gt;&lt;P&gt;I didn't know I could use this way to reload data and so to use precalculated variables&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sergio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Oct 2010 16:17:30 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-10-05T16:17:30Z</dc:date>
    <item>
      <title>Subroutine in Load with Call</title>
      <link>https://community.qlik.com/t5/QlikView/Subroutine-in-Load-with-Call/m-p/228154#M80210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all,&lt;/P&gt;&lt;P&gt;I need to do a unit measure conversion, starting from a fact table and convert the qty from "original UM" to "destination UM".&lt;/P&gt;&lt;P&gt;Instead of convert it using a big formula inside the load I wanted to use a subroutine.&lt;/P&gt;&lt;P&gt;It works but I can't use the call inside a load.&lt;/P&gt;&lt;P&gt;I attach my example.&lt;/P&gt;&lt;P&gt;Any idea to do it with the subroutine or different solution for the same problem without doing all the calculation inside the load ?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sergio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 13:12:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subroutine-in-Load-with-Call/m-p/228154#M80210</guid>
      <dc:creator />
      <dc:date>2010-10-05T13:12:49Z</dc:date>
    </item>
    <item>
      <title>Subroutine in Load with Call</title>
      <link>https://community.qlik.com/t5/QlikView/Subroutine-in-Load-with-Call/m-p/228155#M80211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anyone found a way to solve the issue in an easy way ?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 14:49:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subroutine-in-Load-with-Call/m-p/228155#M80211</guid>
      <dc:creator />
      <dc:date>2010-10-05T14:49:03Z</dc:date>
    </item>
    <item>
      <title>Subroutine in Load with Call</title>
      <link>https://community.qlik.com/t5/QlikView/Subroutine-in-Load-with-Call/m-p/228156#M80212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;The Call does not return a value, so you can't use it like that.&lt;/P&gt;&lt;P&gt;I suggest that you do a load like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;Data:&lt;BR /&gt;LOAD UM,&lt;BR /&gt; MATE,&lt;BR /&gt; QTY * ConverOrig / ConverDesti AS QtyConv,&lt;BR /&gt; QTY,&lt;BR /&gt; TO;&lt;BR /&gt;LOAD *,&lt;BR /&gt; subfield(ApplyMap('ConversionMap',MATE &amp;amp; UM,' '),';',1) / subfield(ApplyMap('ConversionMap',MATE &amp;amp; UM,' '),';',2) AS ConverOrig,&lt;BR /&gt; subfield(ApplyMap('ConversionMap',MATE &amp;amp; 'CS',' '),';',1) / subfield(ApplyMap('ConversionMap',MATE &amp;amp; 'CS',' '),';',2) AS ConverDesti;&lt;BR /&gt;LOAD UM,&lt;BR /&gt; MATE,&lt;BR /&gt; (Call Convert(MATE,UM,'CS',QTY)) as QtyConv,&lt;BR /&gt; QTY,&lt;BR /&gt; TO&lt;BR /&gt;RESIDENT DataTmp;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;BR /&gt;Just check that I converted the two subfield lines correctly.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 15:10:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subroutine-in-Load-with-Call/m-p/228156#M80212</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2010-10-05T15:10:39Z</dc:date>
    </item>
    <item>
      <title>Subroutine in Load with Call</title>
      <link>https://community.qlik.com/t5/QlikView/Subroutine-in-Load-with-Call/m-p/228157#M80213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great !&lt;/P&gt;&lt;P&gt;I didn't know I could use this way to reload data and so to use precalculated variables&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sergio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 16:17:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subroutine-in-Load-with-Call/m-p/228157#M80213</guid>
      <dc:creator />
      <dc:date>2010-10-05T16:17:30Z</dc:date>
    </item>
    <item>
      <title>Subroutine in Load with Call</title>
      <link>https://community.qlik.com/t5/QlikView/Subroutine-in-Load-with-Call/m-p/228158#M80214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi there Jonathan,&lt;/P&gt;&lt;P&gt;iv read this tread and it seems i am missing something in the code you suggested.&lt;/P&gt;&lt;P&gt;where is the table "DataTmp" that you are Resident loading from?&lt;/P&gt;&lt;P&gt;where is the definition of the Mapping table "ConversionMap"?&lt;/P&gt;&lt;P&gt;and can you please explain how you are using the CALL coomand inside a load statement.&lt;/P&gt;&lt;P&gt;thanks for your time&lt;/P&gt;&lt;P&gt;Mansyno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2011 11:33:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subroutine-in-Load-with-Call/m-p/228158#M80214</guid>
      <dc:creator>wizardo</dc:creator>
      <dc:date>2011-03-02T11:33:05Z</dc:date>
    </item>
    <item>
      <title>Subroutine in Load with Call</title>
      <link>https://community.qlik.com/t5/QlikView/Subroutine-in-Load-with-Call/m-p/228159#M80215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mansyno&lt;/P&gt;&lt;P&gt;This was posted some time ago, but I seem to recall the DataTmp and ConversionMap are defined in the qvw attached to the original post. Open that qvw for more info.&lt;/P&gt;&lt;P&gt;If you want a better response, you might start a new thread on this topic. You can always put a link back to this thread in your post.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2011 13:59:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subroutine-in-Load-with-Call/m-p/228159#M80215</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2011-03-02T13:59:09Z</dc:date>
    </item>
  </channel>
</rss>

