<?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 for sort order in chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-for-sort-order-in-chart/m-p/150321#M28369</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SortByYValue might not be available for all charts. Try setting the sort order manually for your chart. If you can't set sort by Y Value manually, you won't be able to do it via macro.&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jul 2009 01:55:45 GMT</pubDate>
    <dc:creator>Oleg_Troyansky</dc:creator>
    <dc:date>2009-07-27T01:55:45Z</dc:date>
    <item>
      <title>Macro for sort order in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-for-sort-order-in-chart/m-p/150320#M28368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I run into problems when I try to create a macro to set the sort order in a chart .&lt;/P&gt;&lt;P&gt;The follwoing code works fine:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Set chart = ActiveDocument.GetSheetObject("CH10")&lt;BR /&gt;Set prop = chart.GetProperties&lt;BR /&gt;Prop.Dimensions(0).SortCriteria.SortByAscii = 0&lt;BR /&gt;Prop.Dimensions(0).SortCriteria.SortByExpression = 0&lt;BR /&gt;Prop.Dimensions(0).SortCriteria.SortByFrequency = 0&lt;BR /&gt;Prop.Dimensions(0).SortCriteria.SortByLoadOrder = 0&lt;BR /&gt;Prop.Dimensions(0).SortCriteria.SortByState = 0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But when I test with this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Prop.Dimensions(0).SortCriteria.SortByYValue = 0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I get an error telling me that "SortByYvalue" is not a valid method/property. But according to the API guide, there is a member called SortByYValue.&lt;/P&gt;&lt;P&gt;I hope somebody can give me a hint.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2009 00:35:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-for-sort-order-in-chart/m-p/150320#M28368</guid>
      <dc:creator />
      <dc:date>2009-07-27T00:35:41Z</dc:date>
    </item>
    <item>
      <title>Macro for sort order in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-for-sort-order-in-chart/m-p/150321#M28369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SortByYValue might not be available for all charts. Try setting the sort order manually for your chart. If you can't set sort by Y Value manually, you won't be able to do it via macro.&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2009 01:55:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-for-sort-order-in-chart/m-p/150321#M28369</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2009-07-27T01:55:45Z</dc:date>
    </item>
    <item>
      <title>Macro for sort order in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-for-sort-order-in-chart/m-p/150322#M28370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply. I can set it manually. It's an ordinary bar chart with one dimension and one calculated expression.&lt;/P&gt;&lt;P&gt;/Anders&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2009 02:29:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-for-sort-order-in-chart/m-p/150322#M28370</guid>
      <dc:creator />
      <dc:date>2009-07-27T02:29:13Z</dc:date>
    </item>
    <item>
      <title>Macro for sort order in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-for-sort-order-in-chart/m-p/150323#M28371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I looked closer into the API description...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SortByYValue is different from the rest of Sorting APIs - it belongs to IGraphProperties and not to ISourtCriteria. You can set it for the whole chart but not for an individual Dimension&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2009 03:07:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-for-sort-order-in-chart/m-p/150323#M28371</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2009-07-27T03:07:36Z</dc:date>
    </item>
    <item>
      <title>Macro for sort order in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-for-sort-order-in-chart/m-p/150324#M28372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Oleg!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2009 04:09:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-for-sort-order-in-chart/m-p/150324#M28372</guid>
      <dc:creator />
      <dc:date>2009-07-27T04:09:02Z</dc:date>
    </item>
  </channel>
</rss>

