<?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: Sorting stacked bar in Qlik Sense with measure market share in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Sorting-stacked-bar-in-Qlik-Sense-with-measure-market-share/m-p/2132986#M92072</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/190879"&gt;@Kaushik2020&lt;/a&gt;&amp;nbsp; Thanks for the help about the dimension color. As u can see, the sorting still doesn't work&lt;/P&gt;</description>
    <pubDate>Mon, 30 Oct 2023 14:47:58 GMT</pubDate>
    <dc:creator>jijig90</dc:creator>
    <dc:date>2023-10-30T14:47:58Z</dc:date>
    <item>
      <title>Sorting stacked bar in Qlik Sense with measure market share</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-stacked-bar-in-Qlik-Sense-with-measure-market-share/m-p/2132926#M92068</link>
      <description>&lt;P&gt;Hello community,&lt;/P&gt;
&lt;P&gt;I am facing an issue with sorting stacked bars in Qlik Sense. I would appreciate any guidance or suggestion.&amp;nbsp;&lt;SPAN&gt;Each bar represents a year, and within each bar, there are segments that represent different values.&amp;nbsp;The bars and their segments are not sorting as expected.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have used the expression bellow for the measure "PDM":&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if( GetSelectedCount([subCategory])=0 and GetSelectedCount([Category])=0 ,&lt;BR /&gt;Sum({$&amp;lt;year = {"&amp;gt;=$(=max(year)-3)&amp;lt;=$(=max(year))"}, Source = {'SRC'}, Category=p(Category), [subCategory]=p([subCategory])&amp;gt;} Amount)&lt;BR /&gt;/&lt;BR /&gt;Sum({1&amp;lt;year = {"&amp;gt;=$(=max(year)-3)&amp;lt;=$(=max(year))"}, Source = {'SRC'}&amp;gt;} total &amp;lt;year&amp;gt; Amount)&lt;BR /&gt;,&lt;BR /&gt;if ( GetSelectedCount([Category])&amp;gt;0 and GetSelectedCount([subCategory])=0 ,&lt;BR /&gt;Sum({$&amp;lt;year = {"&amp;gt;=$(=max(year)-3)&amp;lt;=$(=max(year))"}, Source = {'SRC'}, Category=p(Category)&amp;gt;} Amount)&lt;BR /&gt;/&lt;BR /&gt;Sum({1&amp;lt;year = {"&amp;gt;=$(=max(year)-3)&amp;lt;=$(=max(year))"}, Source = {'SRC'},Category=p(Category)&amp;gt;} total &amp;lt;year&amp;gt; Amount)&lt;BR /&gt;,&lt;BR /&gt;Sum({$&amp;lt;year = {"&amp;gt;=$(=max(year)-3)&amp;lt;=$(=max(year))"}, Source = {'SRC'}, Category=p(Category), [subCategory]=p([subCategory])&amp;gt;} Amount)&lt;BR /&gt;/&lt;BR /&gt;Sum({1&amp;lt;year = {"&amp;gt;=$(=max(year)-3)&amp;lt;=$(=max(year))"}, Source = {'SRC'},Category=p(Category), [subCategory]=p([subCategory])&amp;gt;} total &amp;lt;year&amp;gt; Amount)&lt;BR /&gt;))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The data visualized on the stacked bar chart looks like this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jijig90_1-1698670908071.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/119056i9C57997347C26D77/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jijig90_1-1698670908071.png" alt="jijig90_1-1698670908071.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to sort the segments (here company) for each year while maintaining a fixed color code for each company.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 12:59:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-stacked-bar-in-Qlik-Sense-with-measure-market-share/m-p/2132926#M92068</guid>
      <dc:creator>jijig90</dc:creator>
      <dc:date>2023-10-30T12:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting stacked bar in Qlik Sense with measure market share</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-stacked-bar-in-Qlik-Sense-with-measure-market-share/m-p/2132955#M92069</link>
      <description>&lt;P&gt;Try creating a master Dimension&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kaushi2020_0-1698673246063.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/119060i308EDBE2E3C86462/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kaushi2020_0-1698673246063.png" alt="kaushi2020_0-1698673246063.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then go to the edit dimension property and click on VALUE COLOURS option&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kaushi2020_1-1698673319030.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/119061iD06D2AB8324E3507/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kaushi2020_1-1698673319030.png" alt="kaushi2020_1-1698673319030.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here you can try to put colors based on your requirements for the company.&amp;nbsp; Further call this dimension name in the Dimension section. you will see custom colors for the company.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kaushi2020_2-1698673359362.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/119062iD2529C078CD6FADC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kaushi2020_2-1698673359362.png" alt="kaushi2020_2-1698673359362.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;tried sorting via below sort option but seems its not happening. :S&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kaushi2020_3-1698673879089.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/119064i114A53908704BD67/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kaushi2020_3-1698673879089.png" alt="kaushi2020_3-1698673879089.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 13:51:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-stacked-bar-in-Qlik-Sense-with-measure-market-share/m-p/2132955#M92069</guid>
      <dc:creator>Kaushik2020</dc:creator>
      <dc:date>2023-10-30T13:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting stacked bar in Qlik Sense with measure market share</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-stacked-bar-in-Qlik-Sense-with-measure-market-share/m-p/2132986#M92072</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/190879"&gt;@Kaushik2020&lt;/a&gt;&amp;nbsp; Thanks for the help about the dimension color. As u can see, the sorting still doesn't work&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 14:47:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-stacked-bar-in-Qlik-Sense-with-measure-market-share/m-p/2132986#M92072</guid>
      <dc:creator>jijig90</dc:creator>
      <dc:date>2023-10-30T14:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting stacked bar in Qlik Sense with measure market share</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-stacked-bar-in-Qlik-Sense-with-measure-market-share/m-p/2133152#M92088</link>
      <description>&lt;P&gt;May be some issues with the version which we are using. I am also awaiting for experts to revert on the sorting. Seems this is unusual behaviour.&lt;/P&gt;
&lt;P&gt;#Support&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 06:16:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-stacked-bar-in-Qlik-Sense-with-measure-market-share/m-p/2133152#M92088</guid>
      <dc:creator>Kaushik2020</dc:creator>
      <dc:date>2023-10-31T06:16:25Z</dc:date>
    </item>
  </channel>
</rss>

