<?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 Macro to set sort column in straight-table chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-to-set-sort-column-in-straight-table-chart/m-p/179411#M588743</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sally,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This may help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 14 Mar 2010 16:34:30 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-03-14T16:34:30Z</dc:date>
    <item>
      <title>Macro to set sort column in straight-table chart</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-set-sort-column-in-straight-table-chart/m-p/179410#M588740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings.&lt;/P&gt;&lt;P&gt;I have a QVW that has a number of charts that gets delivered to a customer. Right now, when I've made modifications, I have to manually go through every straight-table chart and make sure that they're all sorting on the correct column (Patient Last Name). I was hoping to write a macro I could run, to save the manual steps each time.&lt;/P&gt;&lt;P&gt;I found "SortBy" in the macros, that indicates it will set whatever column number indicate (such as SortBy 1), to the top of the sorting priority. However, when I try applying this, it seems to pick random columns. I assumed it meant internal columns (some of them are hidden) or just by counting the ones displayed, but either way, I'm getting inconsistent results.&lt;/P&gt;&lt;P&gt;This has got to be something simple and I'm being dense. But I'm not getting any joy with the API Guide. Help! Please!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Mar 2010 20:16:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-set-sort-column-in-straight-table-chart/m-p/179410#M588740</guid>
      <dc:creator />
      <dc:date>2010-03-12T20:16:09Z</dc:date>
    </item>
    <item>
      <title>Macro to set sort column in straight-table chart</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-set-sort-column-in-straight-table-chart/m-p/179411#M588743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sally,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This may help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Mar 2010 16:34:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-set-sort-column-in-straight-table-chart/m-p/179411#M588743</guid>
      <dc:creator />
      <dc:date>2010-03-14T16:34:30Z</dc:date>
    </item>
    <item>
      <title>Macro to set sort column in straight-table chart</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-set-sort-column-in-straight-table-chart/m-p/179412#M588747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response. That's basically the code I have. I tried yours, it works great. I try mine, it doesn't. But some of my charts are minimized. I also have multiple tabs with charts, that I want all processed by the same macro. If I minimize your charts, and try running your macro, it doesn't update the chart. I also moved the button to another tab on your document, and it failed to change any of your charts.&lt;/P&gt;&lt;P&gt;So - it seems I'm doing the right commands, but it only works if the macro is initiated from the page that has the charts on them, and if they're visible (not minimized).&lt;/P&gt;&lt;P&gt;I've tried restoring the chart, and changing focus to the page before running SortBy, but it seems to have no affect. Any other ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 14:21:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-set-sort-column-in-straight-table-chart/m-p/179412#M588747</guid>
      <dc:creator />
      <dc:date>2010-03-15T14:21:38Z</dc:date>
    </item>
  </channel>
</rss>

