<?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 Sort by Y-Axis programmatically in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sort-by-Y-Axis-programmatically/m-p/601873#M1113449</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am building a stacked bar-chart with a user toggle between sort-alphabetically and sort-by-total descending.&amp;nbsp; The problem is when the Y-axis has multiple elements then this sort statement ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;=if(vSortByCaption='Name',vXAxis_col,-1 * $(=vFormula))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... results in a sort by the largest single Y element, not the Y total.; but if I turn on "Sort by Y-Axis" then I lose the ability to sort alphabetically.&amp;nbsp; See attached screenshot below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a better way to code the sort expression or else to programatically toggle the "Sort by Y-Axis" checkbox?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sort-by-value.PNG.png" class="jive-image jiveImage" src="https://community.qlik.com/legacyfs/online/53429_Sort-by-value.PNG.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Feb 2014 16:07:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-02-18T16:07:17Z</dc:date>
    <item>
      <title>Sort by Y-Axis programmatically</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-by-Y-Axis-programmatically/m-p/601873#M1113449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am building a stacked bar-chart with a user toggle between sort-alphabetically and sort-by-total descending.&amp;nbsp; The problem is when the Y-axis has multiple elements then this sort statement ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;=if(vSortByCaption='Name',vXAxis_col,-1 * $(=vFormula))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... results in a sort by the largest single Y element, not the Y total.; but if I turn on "Sort by Y-Axis" then I lose the ability to sort alphabetically.&amp;nbsp; See attached screenshot below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a better way to code the sort expression or else to programatically toggle the "Sort by Y-Axis" checkbox?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sort-by-value.PNG.png" class="jive-image jiveImage" src="https://community.qlik.com/legacyfs/online/53429_Sort-by-value.PNG.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 16:07:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-by-Y-Axis-programmatically/m-p/601873#M1113449</guid>
      <dc:creator />
      <dc:date>2014-02-18T16:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sort by Y-Axis programmatically</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-by-Y-Axis-programmatically/m-p/601874#M1113450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if I understand your question you can try to sort by&lt;/P&gt;&lt;P&gt;aggr(sum(Value), MonthData)&lt;/P&gt;&lt;P&gt;where Value is expression and MonthData is your first dimension&lt;/P&gt;&lt;P&gt;see attachment&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 18:53:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-by-Y-Axis-programmatically/m-p/601874#M1113450</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-02-18T18:53:19Z</dc:date>
    </item>
  </channel>
</rss>

