<?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 Sorting a Stacked Bar Chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sorting-a-Stacked-Bar-Chart/m-p/1276478#M461884</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a stacked bar chart where my x-axis is Month, and y-Axis is NETPOS and my stacked components are ITEMCOMPID.&amp;nbsp; I want my chart to plot the NETPOS in each month and sort by GENERATIONCOSTPMW of each ITEMCOMPID.&amp;nbsp; My data structure has the NETPOS and GENERATIONCOSTPMW under the same list box so I am using set analysis to filter on the Variables I want to plot and sort. the actual values are in STATVALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I create a stacked bar chart with the following steps:&lt;/P&gt;&lt;P&gt;Dimensions: Month and ITEMCOMPID&lt;/P&gt;&lt;P&gt;Expressions: Generation = &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;VARIABLEID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'NETPOS'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;STATVALUE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ITEMCOMPID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sort: Month by Numeric Value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ITEMCOMPID by Expression = &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;VARIABLEID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'GENERATIONCOSTPMW'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;STATVALUE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ITEMCOMPID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;When I do this for a single month my sort looks good, but if I look at all 12 months the sort in Jan only is not the same as Jan when I have all 12 months plotted.&amp;nbsp; It looks like it is keeping the same sort order across all 12 months.&amp;nbsp; How do I enforce the plot to stack the ITEMCOMPID in each month by the GENERATIONCOSTPMW in each month?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Nov 2016 18:11:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-11-18T18:11:54Z</dc:date>
    <item>
      <title>Sorting a Stacked Bar Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-a-Stacked-Bar-Chart/m-p/1276478#M461884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a stacked bar chart where my x-axis is Month, and y-Axis is NETPOS and my stacked components are ITEMCOMPID.&amp;nbsp; I want my chart to plot the NETPOS in each month and sort by GENERATIONCOSTPMW of each ITEMCOMPID.&amp;nbsp; My data structure has the NETPOS and GENERATIONCOSTPMW under the same list box so I am using set analysis to filter on the Variables I want to plot and sort. the actual values are in STATVALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I create a stacked bar chart with the following steps:&lt;/P&gt;&lt;P&gt;Dimensions: Month and ITEMCOMPID&lt;/P&gt;&lt;P&gt;Expressions: Generation = &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;VARIABLEID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'NETPOS'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;STATVALUE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ITEMCOMPID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sort: Month by Numeric Value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ITEMCOMPID by Expression = &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;VARIABLEID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'GENERATIONCOSTPMW'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;STATVALUE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ITEMCOMPID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;When I do this for a single month my sort looks good, but if I look at all 12 months the sort in Jan only is not the same as Jan when I have all 12 months plotted.&amp;nbsp; It looks like it is keeping the same sort order across all 12 months.&amp;nbsp; How do I enforce the plot to stack the ITEMCOMPID in each month by the GENERATIONCOSTPMW in each month?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2016 18:11:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-a-Stacked-Bar-Chart/m-p/1276478#M461884</guid>
      <dc:creator />
      <dc:date>2016-11-18T18:11:54Z</dc:date>
    </item>
  </channel>
</rss>

