<?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: Can you execute a variable through a macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Can-you-execute-a-variable-through-a-macro/m-p/1135544#M372787</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A macro is rarely the best solution in QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could use expression variables. There are many posts if yous search for expression variables, I would recommend Henric Cronstrom's &lt;A href="https://community.qlik.com/qlik-users/4003"&gt;hic&lt;/A&gt; post as a good starting point. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3406"&gt;The Magic of Variables&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Aug 2016 16:50:16 GMT</pubDate>
    <dc:creator>Colin-Albert</dc:creator>
    <dc:date>2016-08-18T16:50:16Z</dc:date>
    <item>
      <title>Can you execute a variable through a macro</title>
      <link>https://community.qlik.com/t5/QlikView/Can-you-execute-a-variable-through-a-macro/m-p/1135536#M372779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Qlikview user&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to execute a variable through a macro?&amp;nbsp; If so, could you kindly share the code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to build my code bit by bit, and wanted to know this part first&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Helen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2016 16:16:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-you-execute-a-variable-through-a-macro/m-p/1135536#M372779</guid>
      <dc:creator>helen_pip</dc:creator>
      <dc:date>2016-08-18T16:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can you execute a variable through a macro</title>
      <link>https://community.qlik.com/t5/QlikView/Can-you-execute-a-variable-through-a-macro/m-p/1135537#M372780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not clear when you say execute a variable ? Do you want to read the variable value from a macro ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2016 16:19:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-you-execute-a-variable-through-a-macro/m-p/1135537#M372780</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2016-08-18T16:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Can you execute a variable through a macro</title>
      <link>https://community.qlik.com/t5/QlikView/Can-you-execute-a-variable-through-a-macro/m-p/1135538#M372781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thank you for replying&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;1. I have a pivot table which contains a drill down group.&amp;nbsp; Each dimension in the group is a variable.&amp;nbsp; I.e. v1, v2 etc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;2. I want to have a button which runs a macro and change the pivot table to display that particular dimension within the group&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I have parts of the macro already I.e. This part of the macro cycles through the group.&amp;nbsp; However I want to have a button which skips parts of the cycle group and just jumps straight to particular variables within the &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Outpatients_View_By_Fields group&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUB setgroup&lt;/P&gt;&lt;P&gt;SET gp = ActiveDocument.GetGroup("Outpatients_View_By_Fields")&lt;/P&gt;&lt;P&gt;gp.cycle 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you able to help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Helen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2016 16:28:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-you-execute-a-variable-through-a-macro/m-p/1135538#M372781</guid>
      <dc:creator>helen_pip</dc:creator>
      <dc:date>2016-08-18T16:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can you execute a variable through a macro</title>
      <link>https://community.qlik.com/t5/QlikView/Can-you-execute-a-variable-through-a-macro/m-p/1135539#M372782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you actually need to do this using a macro?&lt;/P&gt;&lt;P&gt;It is far better to use native functionality in QlikView to create the application rather than using macros.&lt;/P&gt;&lt;P&gt;You could have multiple charts that you show / or hide based on Actions rather than using a macros for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This post is worth reading&amp;nbsp; &lt;A href="https://community.qlik.com/qlik-blogpost/3700"&gt;Macros are Bad&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2016 16:33:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-you-execute-a-variable-through-a-macro/m-p/1135539#M372782</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2016-08-18T16:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can you execute a variable through a macro</title>
      <link>https://community.qlik.com/t5/QlikView/Can-you-execute-a-variable-through-a-macro/m-p/1135540#M372783</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;I want to ask you a question, Are you using Macro for any specific purpose.&lt;/P&gt;&lt;P&gt;If you are using Macro to just achieve something, then let us know what is it. It may happen that same thing can be achieved without Macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2016 16:36:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-you-execute-a-variable-through-a-macro/m-p/1135540#M372783</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2016-08-18T16:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can you execute a variable through a macro</title>
      <link>https://community.qlik.com/t5/QlikView/Can-you-execute-a-variable-through-a-macro/m-p/1135541#M372784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please take a look at the below link and see if it helps...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/108764"&gt;button to switch dimensions in dimension groups&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-8631"&gt;Set the active field in a cyclic group.qvw&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/49251"&gt;Need help on macro to select group field value&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Added second and third link&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2016 16:42:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-you-execute-a-variable-through-a-macro/m-p/1135541#M372784</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2016-08-18T16:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Can you execute a variable through a macro</title>
      <link>https://community.qlik.com/t5/QlikView/Can-you-execute-a-variable-through-a-macro/m-p/1135542#M372785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Colin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought a macro would be best, because my pivot table is held within a container and we have opted for a container method to save on memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The container has 6 pivot tables within it and each contains the same group called &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Outpatients_View_By_Fields fr the dimensions.&amp;nbsp; The dimensions within this group also have headings at the top of the page&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I wanted to place buttons on each heading at the top of the page, and the macro within these buttons would interact with the pivot table drill down group and change the table to show the correct dimension related to the heading&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can a macro achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Helen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2016 16:44:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-you-execute-a-variable-through-a-macro/m-p/1135542#M372785</guid>
      <dc:creator>helen_pip</dc:creator>
      <dc:date>2016-08-18T16:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can you execute a variable through a macro</title>
      <link>https://community.qlik.com/t5/QlikView/Can-you-execute-a-variable-through-a-macro/m-p/1135543#M372786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hello Kaushik&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I thought a macro would be best, because my pivot table is held within a container and we have opted for a container method to save on memory.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;The container has 6 pivot tables within it and each contains the same group called &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Outpatients_View_By_Fields fr the dimensions.&amp;nbsp; The dimensions within this group also have headings at the top of the page&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;I wanted to place buttons on each heading at the top of the page, and the macro within these buttons would interact with the pivot table drill down group and change the table to show the correct dimension related to the heading&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Can a macro achieve this?&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Kind Regards&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Helen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2016 16:44:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-you-execute-a-variable-through-a-macro/m-p/1135543#M372786</guid>
      <dc:creator>helen_pip</dc:creator>
      <dc:date>2016-08-18T16:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can you execute a variable through a macro</title>
      <link>https://community.qlik.com/t5/QlikView/Can-you-execute-a-variable-through-a-macro/m-p/1135544#M372787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A macro is rarely the best solution in QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could use expression variables. There are many posts if yous search for expression variables, I would recommend Henric Cronstrom's &lt;A href="https://community.qlik.com/qlik-users/4003"&gt;hic&lt;/A&gt; post as a good starting point. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3406"&gt;The Magic of Variables&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2016 16:50:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-you-execute-a-variable-through-a-macro/m-p/1135544#M372787</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2016-08-18T16:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Can you execute a variable through a macro</title>
      <link>https://community.qlik.com/t5/QlikView/Can-you-execute-a-variable-through-a-macro/m-p/1135545#M372788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Helan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible for you to share qvw app with sample data. Also guide us with example what you are trying to achieve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2016 04:10:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-you-execute-a-variable-through-a-macro/m-p/1135545#M372788</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2016-08-19T04:10:19Z</dc:date>
    </item>
  </channel>
</rss>

