<?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 to Reduce Data after Reload in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-to-Reduce-Data-after-Reload/m-p/157274#M32819</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a lot of QVW files, how should I batch reduce data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Aug 2012 09:20:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-08-10T09:20:06Z</dc:date>
    <item>
      <title>Macro to Reduce Data after Reload</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-Reduce-Data-after-Reload/m-p/157273#M32818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using QlikView 8.5. I would like to execute a reduce data command after reloading a template. I have created a macro which makes some selections on the data and then attempts to reduce data. I have then attached that macro to the OnPostReload event trigger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;sub AfterReload&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt 36pt;"&gt;ActiveDocument.Fields("SubRegion").Select "NNI")&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt 36pt;"&gt;ActiveDocument.Fields("SubRegion").ToggleSelect "ENI")&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt 36pt;"&gt;ActiveDocument.ReduceData&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;end sub&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P&gt;The selection part of the macro works fine but the macro editor pops up at the ReduceData line. If I then save the template and re-open it I can successfully run the AfterReload macro without any problem. I have also noticed that after the reload, I cannot use the File / Reduce Data / Keep Possible Values command - no errors, just nothing happens.&lt;/P&gt;&lt;P&gt;This is really frustrating and any suggestions would be gratefully received.&lt;/P&gt;&lt;P&gt;Thanks, Kevin Long&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2010 04:39:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-Reduce-Data-after-Reload/m-p/157273#M32818</guid>
      <dc:creator />
      <dc:date>2010-02-24T04:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to Reduce Data after Reload</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-Reduce-Data-after-Reload/m-p/157274#M32819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a lot of QVW files, how should I batch reduce data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2012 09:20:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-Reduce-Data-after-Reload/m-p/157274#M32819</guid>
      <dc:creator />
      <dc:date>2012-08-10T09:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to Reduce Data after Reload</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-Reduce-Data-after-Reload/m-p/157275#M32820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Have you considered using Publisher?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;DV&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;A href="http://www.QlikShare.com"&gt;www.QlikShare.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2012 10:12:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-Reduce-Data-after-Reload/m-p/157275#M32820</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2012-08-10T10:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to Reduce Data after Reload</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-Reduce-Data-after-Reload/m-p/157276#M32821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your script worked fine for me, albeit in v11. The only issue was that you have extraneous closing parentheses at the end of each of your selection lines.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2012 22:14:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-Reduce-Data-after-Reload/m-p/157276#M32821</guid>
      <dc:creator>msteedle</dc:creator>
      <dc:date>2012-08-10T22:14:30Z</dc:date>
    </item>
  </channel>
</rss>

