<?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: Macro function call from another qvw file in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-function-call-from-another-qvw-file/m-p/424775#M697437</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After loading the data from 1st qvd files, I am making lot of calculations and the result is saved in a new qvd files.&lt;/P&gt;&lt;P&gt;I am not able to make this calculation in load script since the logic is complicated to do.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two qvd files , one is purchase schedules and another qvd file which is corresponding grn (goods receipts file).&amp;nbsp;&amp;nbsp; In my scenario , there are one or more than one rows for a specific p.o number in both tables.&amp;nbsp; I have to calculate fulfillment ratio and delay in delivery days (FIFO basis) by checking each records in both tables.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently , in the 1st qvw file, I am loading both PO and GRN qvd files in to two different tables, and then briging this data in to two different chart (table list).&amp;nbsp; The Marco function I worte will perform the calculation in which I am reading each records from GRN table and finding out fulfillment ratio and delivery delay days, writing this into a new table and saving the new qvd file.&amp;nbsp; Since the macro can perform only after the load script, where I am calling the chart values , I can not call this function in the load script.&lt;/P&gt;&lt;P&gt;The reason I am using chart for calculation is, the table read (each rows) taking more time thant reading records from the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using publisher to perform the load which is scheduled at night.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Is there any option to call the marco function after completing the load script.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;sajith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 09 Mar 2013 13:09:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-03-09T13:09:49Z</dc:date>
    <item>
      <title>Macro function call from another qvw file</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-function-call-from-another-qvw-file/m-p/424771#M697433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Is it possible to call a Macro function written in one qvw file from another qvw load script ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;I created a macro function in one qvw file which prepare and calculate values and write into a file.&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Can I call this function from another qvw&amp;nbsp; load script ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Thanks&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Sajith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Mar 2013 11:52:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-function-call-from-another-qvw-file/m-p/424771#M697433</guid>
      <dc:creator />
      <dc:date>2013-03-09T11:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Macro function call from another qvw file</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-function-call-from-another-qvw-file/m-p/424772#M697434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Sajith,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not possible to call a macro which is written in another Qlikview file, you need to load or copy and paste the same macro into the current&amp;nbsp; Qlikview file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Mar 2013 12:12:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-function-call-from-another-qvw-file/m-p/424772#M697434</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-03-09T12:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Macro function call from another qvw file</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-function-call-from-another-qvw-file/m-p/424773#M697435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am performing some calculation and saving the qvd file from the fist qvw file.&amp;nbsp; Following are my sequence of operation:&lt;/P&gt;&lt;P&gt;1.qvw file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; load script to load data to tables&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a macro is written which I need to execute after the load , which performes the calculation from the chart&amp;nbsp; and create the result into a qvd file&lt;/P&gt;&lt;P&gt;Since I am reading the chart , macro can be called only after the load script completion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.qvw file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am thinking of calling the 1.qvw macro function , so that it create the the qvd file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if this is not possible, can I execute the macro function in the 1st qvw file after completing the load scrip ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Sajith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Mar 2013 12:31:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-function-call-from-another-qvw-file/m-p/424773#M697435</guid>
      <dc:creator />
      <dc:date>2013-03-09T12:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Macro function call from another qvw file</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-function-call-from-another-qvw-file/m-p/424774#M697436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sajith,&lt;/P&gt;&lt;P&gt;Why can't you use QVD file created in the First Qlikview file in second Qlikview file?&amp;nbsp; Is data changes in both the files?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not possible to call a macro in another qlikview file, you have to create the same function in the same qlikview file and execute the macro as you are doing in the first file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the data is same in files 1 and 2 then you can straight away use the QVD in the second Qlikview file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Mar 2013 12:44:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-function-call-from-another-qvw-file/m-p/424774#M697436</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-03-09T12:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Macro function call from another qvw file</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-function-call-from-another-qvw-file/m-p/424775#M697437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After loading the data from 1st qvd files, I am making lot of calculations and the result is saved in a new qvd files.&lt;/P&gt;&lt;P&gt;I am not able to make this calculation in load script since the logic is complicated to do.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two qvd files , one is purchase schedules and another qvd file which is corresponding grn (goods receipts file).&amp;nbsp;&amp;nbsp; In my scenario , there are one or more than one rows for a specific p.o number in both tables.&amp;nbsp; I have to calculate fulfillment ratio and delay in delivery days (FIFO basis) by checking each records in both tables.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently , in the 1st qvw file, I am loading both PO and GRN qvd files in to two different tables, and then briging this data in to two different chart (table list).&amp;nbsp; The Marco function I worte will perform the calculation in which I am reading each records from GRN table and finding out fulfillment ratio and delivery delay days, writing this into a new table and saving the new qvd file.&amp;nbsp; Since the macro can perform only after the load script, where I am calling the chart values , I can not call this function in the load script.&lt;/P&gt;&lt;P&gt;The reason I am using chart for calculation is, the table read (each rows) taking more time thant reading records from the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using publisher to perform the load which is scheduled at night.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Is there any option to call the marco function after completing the load script.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;sajith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Mar 2013 13:09:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-function-call-from-another-qvw-file/m-p/424775#M697437</guid>
      <dc:creator />
      <dc:date>2013-03-09T13:09:49Z</dc:date>
    </item>
  </channel>
</rss>

