<?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 simple sorting macro for chart not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/simple-sorting-macro-for-chart-not-working/m-p/428066#M159519</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Based on some other posts here, I'm trying a simple macro, to sort my chart (a straight table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SUB testSort&lt;BR /&gt;&amp;nbsp; set fld = ActiveDocument.GetField("Affiliate")&lt;BR /&gt;&amp;nbsp; set fldsrt = fld.GetDefaultSortCriteria &lt;BR /&gt;&amp;nbsp; fldsrt.SortByAscii = 0&lt;BR /&gt;&amp;nbsp; fldsrt.SortByFrequency = 0&lt;BR /&gt;&amp;nbsp; fldsrt.SortByLoadOrder = 0&lt;BR /&gt;&amp;nbsp; fldsrt.SortByNumeric = 0&lt;BR /&gt;&amp;nbsp; fldsrt.SortByState = 0&lt;BR /&gt;&amp;nbsp; fldsrt.SortByExpression = 1&lt;BR /&gt;&amp;nbsp; fldsrt.Expression.v = "[Renewable File Size]"&lt;BR /&gt;&amp;nbsp; fld.SetDefaultSortCriteria fldsrt&lt;BR /&gt;END SUB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The intention is to sort rows according to the expression [Renewable File Size] but running this macro has no effect.&amp;nbsp; No error message, but it does nothing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I missing here, is there some additional step being left out?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your ideas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hanno Beck&lt;/P&gt;&lt;P&gt;Agora, Inc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Apr 2013 19:50:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-04-05T19:50:46Z</dc:date>
    <item>
      <title>simple sorting macro for chart not working</title>
      <link>https://community.qlik.com/t5/QlikView/simple-sorting-macro-for-chart-not-working/m-p/428066#M159519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Based on some other posts here, I'm trying a simple macro, to sort my chart (a straight table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SUB testSort&lt;BR /&gt;&amp;nbsp; set fld = ActiveDocument.GetField("Affiliate")&lt;BR /&gt;&amp;nbsp; set fldsrt = fld.GetDefaultSortCriteria &lt;BR /&gt;&amp;nbsp; fldsrt.SortByAscii = 0&lt;BR /&gt;&amp;nbsp; fldsrt.SortByFrequency = 0&lt;BR /&gt;&amp;nbsp; fldsrt.SortByLoadOrder = 0&lt;BR /&gt;&amp;nbsp; fldsrt.SortByNumeric = 0&lt;BR /&gt;&amp;nbsp; fldsrt.SortByState = 0&lt;BR /&gt;&amp;nbsp; fldsrt.SortByExpression = 1&lt;BR /&gt;&amp;nbsp; fldsrt.Expression.v = "[Renewable File Size]"&lt;BR /&gt;&amp;nbsp; fld.SetDefaultSortCriteria fldsrt&lt;BR /&gt;END SUB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The intention is to sort rows according to the expression [Renewable File Size] but running this macro has no effect.&amp;nbsp; No error message, but it does nothing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I missing here, is there some additional step being left out?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your ideas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hanno Beck&lt;/P&gt;&lt;P&gt;Agora, Inc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2013 19:50:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/simple-sorting-macro-for-chart-not-working/m-p/428066#M159519</guid>
      <dc:creator />
      <dc:date>2013-04-05T19:50:46Z</dc:date>
    </item>
  </channel>
</rss>

