<?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 Re: Stacked Bar Chart Sorting based on values in charts in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Stacked-Bar-Chart-Sorting-based-on-values-in-charts/m-p/867868#M659083</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know your answer is correct, but i still cannot manage it to work. &lt;/P&gt;&lt;P&gt;my chart expression is :&lt;/P&gt;&lt;P&gt;count(DISTINCT SUB_ID) / count(total &amp;lt;CITY&amp;gt; DISTINCT SUB_ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Sort Expression i tried :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count( {$&amp;lt;CustomerStatus= {'ExCustomer'} &amp;gt;} SUB_ID )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Real Question :&lt;/P&gt;&lt;P&gt;Sort the cities in charts order by the biggest ExCustomer Values in stacked bar charts. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Apr 2015 12:40:39 GMT</pubDate>
    <dc:creator>arixooo123</dc:creator>
    <dc:date>2015-04-08T12:40:39Z</dc:date>
    <item>
      <title>Stacked Bar Chart Sorting based on values in charts</title>
      <link>https://community.qlik.com/t5/QlikView/Stacked-Bar-Chart-Sorting-based-on-values-in-charts/m-p/867860#M659075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dears!&lt;/P&gt;&lt;P&gt;Please take a look at the attached image chart, as you can see my stacked bar chart can get sorted by 2 different dimensions. one dimension controls the order of values shown in each stack, the other control the order of stacks appeared in chart.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to sort the &lt;STRONG&gt;stacks&lt;/STRONG&gt; based on the blue value decreasingly. &lt;/P&gt;&lt;P&gt;It has to come in the expression part of sorting. bu i don't know the appropriate script for that.&amp;nbsp; &lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Arman &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 13:12:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stacked-Bar-Chart-Sorting-based-on-values-in-charts/m-p/867860#M659075</guid>
      <dc:creator>arixooo123</dc:creator>
      <dc:date>2015-04-07T13:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked Bar Chart Sorting based on values in charts</title>
      <link>https://community.qlik.com/t5/QlikView/Stacked-Bar-Chart-Sorting-based-on-values-in-charts/m-p/867861#M659076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the sort use the expression &lt;SPAN class="Bold"&gt;sum(&lt;/SPAN&gt; {$&amp;lt;Grouping= {ExCustomer} &amp;gt;} Sales&lt;SPAN class="Bold"&gt; ) where Grouping is your dimension ....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 13:22:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stacked-Bar-Chart-Sorting-based-on-values-in-charts/m-p/867861#M659076</guid>
      <dc:creator>Roop</dc:creator>
      <dc:date>2015-04-07T13:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked Bar Chart Sorting based on values in charts</title>
      <link>https://community.qlik.com/t5/QlikView/Stacked-Bar-Chart-Sorting-based-on-values-in-charts/m-p/867862#M659077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Name of Dimension including "ExCustomer" is Status, the Other Dimension is Cities. &lt;/P&gt;&lt;P&gt;so you are saying it should be like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; {$&amp;lt;Status= {ExCustomer} &amp;gt;} Cities&lt;/SPAN&gt;&lt;SPAN class="Bold" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;it doesn't work &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 13:39:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stacked-Bar-Chart-Sorting-based-on-values-in-charts/m-p/867862#M659077</guid>
      <dc:creator>arixooo123</dc:creator>
      <dc:date>2015-04-07T13:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked Bar Chart Sorting based on values in charts</title>
      <link>https://community.qlik.com/t5/QlikView/Stacked-Bar-Chart-Sorting-based-on-values-in-charts/m-p/867863#M659078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not Cities...&lt;/P&gt;&lt;P&gt;The expression is the same you use in your chart, but with additional set condition {$&amp;lt;Status= {ExCustomer} &amp;gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 13:45:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stacked-Bar-Chart-Sorting-based-on-values-in-charts/m-p/867863#M659078</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-07T13:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked Bar Chart Sorting based on values in charts</title>
      <link>https://community.qlik.com/t5/QlikView/Stacked-Bar-Chart-Sorting-based-on-values-in-charts/m-p/867864#M659079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear, &lt;/P&gt;&lt;P&gt;You mean in the expression tab?&lt;/P&gt;&lt;P&gt;I thought there should be a way to add an expression in sort tab to sort stacks based on a value. &lt;/P&gt;&lt;P&gt;sorry if i didn't get what you say. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 13:54:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stacked-Bar-Chart-Sorting-based-on-values-in-charts/m-p/867864#M659079</guid>
      <dc:creator>arixooo123</dc:creator>
      <dc:date>2015-04-07T13:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked Bar Chart Sorting based on values in charts</title>
      <link>https://community.qlik.com/t5/QlikView/Stacked-Bar-Chart-Sorting-based-on-values-in-charts/m-p/867865#M659080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You thought right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example 1:&lt;/P&gt;&lt;P&gt;Your expression in the expression tab is sum(Sales).&amp;nbsp; In this case your expression in sort tab is&lt;/P&gt;&lt;P&gt;sum ({$&amp;lt;Status= {ExCustomer} &amp;gt;} Sales). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example 2:&lt;/P&gt;&lt;P&gt;Your expression in the expression tab is count (distinct Apples).&amp;nbsp; In this case your expression in sort tab is &lt;/P&gt;&lt;P&gt;count ({$&amp;lt;Status= {ExCustomer} &amp;gt;} distinct Apples). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 13:59:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stacked-Bar-Chart-Sorting-based-on-values-in-charts/m-p/867865#M659080</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-07T13:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked Bar Chart Sorting based on values in charts</title>
      <link>https://community.qlik.com/t5/QlikView/Stacked-Bar-Chart-Sorting-based-on-values-in-charts/m-p/867866#M659081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sorry but i dont want to have just ExCustomer values being shown in the&lt;/P&gt;&lt;P&gt;charts. I would like to have all of them but sort the cities based on their&lt;/P&gt;&lt;P&gt;ExCustomer percentage.&lt;/P&gt;&lt;P&gt;For example city A which has the largest ExCustomer share should come first&lt;/P&gt;&lt;P&gt;in the chart.&lt;/P&gt;&lt;P&gt;I hope i could deliver my message&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 18:08:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stacked-Bar-Chart-Sorting-based-on-values-in-charts/m-p/867866#M659081</guid>
      <dc:creator>arixooo123</dc:creator>
      <dc:date>2015-04-07T18:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked Bar Chart Sorting based on values in charts</title>
      <link>https://community.qlik.com/t5/QlikView/Stacked-Bar-Chart-Sorting-based-on-values-in-charts/m-p/867867#M659082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You succeeded delivering your message &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; but oyu failed to recognize mine &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/angry.png" /&gt;&lt;/P&gt;&lt;P&gt;Trying last time...&lt;/P&gt;&lt;P&gt;Chart expression in "example 1" is sum(Sales).&amp;nbsp; That means that all Status values are included.&lt;/P&gt;&lt;P&gt;Sort expression is sum ({$&amp;lt;Status= {ExCustomer} &amp;gt;} Sales).&amp;nbsp; That means that sort will be using only Status 'ExCustomer'.&lt;/P&gt;&lt;P&gt;If you upload a sample of your application, I (or someone else) can show you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 18:15:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stacked-Bar-Chart-Sorting-based-on-values-in-charts/m-p/867867#M659082</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-07T18:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked Bar Chart Sorting based on values in charts</title>
      <link>https://community.qlik.com/t5/QlikView/Stacked-Bar-Chart-Sorting-based-on-values-in-charts/m-p/867868#M659083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know your answer is correct, but i still cannot manage it to work. &lt;/P&gt;&lt;P&gt;my chart expression is :&lt;/P&gt;&lt;P&gt;count(DISTINCT SUB_ID) / count(total &amp;lt;CITY&amp;gt; DISTINCT SUB_ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Sort Expression i tried :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count( {$&amp;lt;CustomerStatus= {'ExCustomer'} &amp;gt;} SUB_ID )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Real Question :&lt;/P&gt;&lt;P&gt;Sort the cities in charts order by the biggest ExCustomer Values in stacked bar charts. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 12:40:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stacked-Bar-Chart-Sorting-based-on-values-in-charts/m-p/867868#M659083</guid>
      <dc:creator>arixooo123</dc:creator>
      <dc:date>2015-04-08T12:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked Bar Chart Sorting based on values in charts</title>
      <link>https://community.qlik.com/t5/QlikView/Stacked-Bar-Chart-Sorting-based-on-values-in-charts/m-p/867869#M659084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My best guess is that the Sort expression should be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({$&amp;lt;CustomerStatus= {'ExCustomer'} &amp;gt;} DISTINCT SUB_ID) / count({$&amp;lt;CustomerStatus= {'ExCustomer'} &amp;gt;} total &amp;lt;CITY&amp;gt; DISTINCT SUB_ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But there is always a chance that you've missed something.&amp;nbsp; It would be so much easier to help you if you could upload an example of your application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 12:59:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stacked-Bar-Chart-Sorting-based-on-values-in-charts/m-p/867869#M659084</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-08T12:59:05Z</dc:date>
    </item>
  </channel>
</rss>

