<?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: Use Macro Function in Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-Macro-Function-in-Expression/m-p/578983#M215288</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are new to QlikView, then ignore macros. They are not required for the majority of applications. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Most tasks can be done directly using expressions and actions without the need for macros. &lt;/P&gt;&lt;P&gt;Learn how to apply the power of the associative data model, QlikView expressions and load scripts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 15 Mar 2014 07:15:33 GMT</pubDate>
    <dc:creator>Colin-Albert</dc:creator>
    <dc:date>2014-03-15T07:15:33Z</dc:date>
    <item>
      <title>Use Macro Function in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-Macro-Function-in-Expression/m-p/578982#M215287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;I am new to Qlik View,&lt;/P&gt;&lt;P&gt;I have created a simple macro function as given below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function ZMultiply(ZQty)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ZMultiply = ZQty * 10&lt;/P&gt;&lt;P&gt;End Function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use this function in Expression (refer attached qvw) but failed to do so.&lt;/P&gt;&lt;P&gt;My query is - Can we use Macro Function in Expression if yes How?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Girish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Mar 2014 05:54:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-Macro-Function-in-Expression/m-p/578982#M215287</guid>
      <dc:creator>girish_talele</dc:creator>
      <dc:date>2014-03-15T05:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Use Macro Function in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-Macro-Function-in-Expression/m-p/578983#M215288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are new to QlikView, then ignore macros. They are not required for the majority of applications. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Most tasks can be done directly using expressions and actions without the need for macros. &lt;/P&gt;&lt;P&gt;Learn how to apply the power of the associative data model, QlikView expressions and load scripts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Mar 2014 07:15:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-Macro-Function-in-Expression/m-p/578983#M215288</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2014-03-15T07:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Use Macro Function in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-Macro-Function-in-Expression/m-p/578984#M215289</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;Instead of macro try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a variable like this&lt;/P&gt;&lt;P&gt;variable Name = Calc&lt;/P&gt;&lt;P&gt;Expression -&amp;nbsp; Num(($1)) * 10 (Note : don't give = in variable declaration)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use this in expression like this&lt;/P&gt;&lt;P&gt;=$(Calc (65))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above returns 650 i.e., 65 * 10&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, 15 Mar 2014 08:25:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-Macro-Function-in-Expression/m-p/578984#M215289</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-03-15T08:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Use Macro Function in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-Macro-Function-in-Expression/m-p/578985#M215290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Colin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm absolutely with you there.&lt;/P&gt;&lt;P&gt;Macros are for "emergencies" - things that you absolutely cannot do with QlikView_internal functionality - or for the real experts who want to do some wondrous thing.&lt;/P&gt;&lt;P&gt;In one year of developing QlikView apps, I have come across one instance where we needed a macro - something QlikView should actually do by itself via document_triggers, but those don't work reliably in Ajax.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Mar 2014 08:40:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-Macro-Function-in-Expression/m-p/578985#M215290</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-03-15T08:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Use Macro Function in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-Macro-Function-in-Expression/m-p/578986#M215291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Colin &amp;amp; DataNibbler,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for looking into.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Certainly QlikView is a very good tool &amp;amp; it’s functions are also suffice the requirements. But in our case, there are some long expressions/formulas which we need to use extensively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For such cases, earlier in excel we have developed UDFs (VBA) for the same. And to ease the things (instead of writing long formula) in QlikView expression, we want to use macro UDFs here also .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dear Jagan,&lt;/P&gt;&lt;P&gt;Thanks for variable we will see if complicated formulas can be accommodate in variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Girish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Mar 2014 10:58:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-Macro-Function-in-Expression/m-p/578986#M215291</guid>
      <dc:creator>girish_talele</dc:creator>
      <dc:date>2014-03-15T10:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Use Macro Function in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-Macro-Function-in-Expression/m-p/578987#M215292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you use macros, be aware that this will reduce performance as the cache will be cleared, and the expressions will be executed in a less optimised method. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are more details of this in this thread - read the attached document "Understanding the Impact of Macros" in the thread.&amp;nbsp;&amp;nbsp; &lt;A href="http://qlikcommunity.qliktech.com/thread/87113" title="http://qlikcommunity.qliktech.com/thread/87113"&gt;Plz Forward the Qlikview Macros &amp;amp; Triggers ... | Qlik Community&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Mar 2014 14:41:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-Macro-Function-in-Expression/m-p/578987#M215292</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2014-03-15T14:41:12Z</dc:date>
    </item>
  </channel>
</rss>

