<?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: Select values in straight table chart using a macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Select-values-in-straight-table-chart-using-a-macro/m-p/751192#M664868</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need a loop to read the array-values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub Selects&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arr1 = Array("A", "B")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for i = 0 to ubound(arr1) - 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.Fields("Status").Select arr1(i)&lt;/P&gt;&lt;P&gt;next&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;But what is the reason for this routine?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Jan 2015 16:41:41 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2015-01-22T16:41:41Z</dc:date>
    <item>
      <title>Select values in straight table chart using a macro</title>
      <link>https://community.qlik.com/t5/QlikView/Select-values-in-straight-table-chart-using-a-macro/m-p/751191#M664867</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;/P&gt;&lt;P&gt;I would like to create a macro that automatically selects values in a chart based on a variable's value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a variable called Status that has a value of either A, B, C, or D. This variable is used as a dimension in a straight table chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run my macro, I would like to select lines in my chart where Status has a value of A or B. I have tried several different variations of the macro below, but it is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub Selects&lt;/P&gt;&lt;P&gt;arr1 = Array("A", "B")&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("Status").Select arr1&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems like it should be fairly straightforward. Any thoughts about how I can get this macro to work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 16:21:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-values-in-straight-table-chart-using-a-macro/m-p/751191#M664867</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-22T16:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Select values in straight table chart using a macro</title>
      <link>https://community.qlik.com/t5/QlikView/Select-values-in-straight-table-chart-using-a-macro/m-p/751192#M664868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need a loop to read the array-values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub Selects&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arr1 = Array("A", "B")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for i = 0 to ubound(arr1) - 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.Fields("Status").Select arr1(i)&lt;/P&gt;&lt;P&gt;next&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;But what is the reason for this routine?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 16:41:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-values-in-straight-table-chart-using-a-macro/m-p/751192#M664868</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-01-22T16:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: Select values in straight table chart using a macro</title>
      <link>https://community.qlik.com/t5/QlikView/Select-values-in-straight-table-chart-using-a-macro/m-p/751193#M664869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response Marcus, but that does not seem work either. The edit module window opens whenever I run the macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to add a few buttons to my Qlikview doc that allow me to quickly switch between different views of my chart, rather than selecting each field from a list or menu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to accomplish this without using an array?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 17:57:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-values-in-straight-table-chart-using-a-macro/m-p/751193#M664869</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-23T17:57:52Z</dc:date>
    </item>
  </channel>
</rss>

