<?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: How to sort the dimension in the bar chart? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-sort-the-dimension-in-the-bar-chart/m-p/129639#M752344</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;You GM_Bucket_Sort should work. I would set the expression:&lt;/P&gt;&lt;P&gt;Max({1}GM_Bucket_Sort) myself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure that the sort expression is the first ranked one and there are no other check boxes clicked on.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Oct 2018 13:17:46 GMT</pubDate>
    <dc:creator>niclaz79</dc:creator>
    <dc:date>2018-10-23T13:17:46Z</dc:date>
    <item>
      <title>How to sort the dimension in the bar chart?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-the-dimension-in-the-bar-chart/m-p/129635#M752340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a bar chart with &lt;STRONG&gt;GP_Bucket&lt;/STRONG&gt; as dimension and &lt;STRONG&gt;Count, Sales&lt;/STRONG&gt; as expressions as shown below;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/216571_1.PNG" style="height: 525px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to sort the dimension in the following order &amp;gt; '&amp;lt;10%','10-14%','14-20%','20-25%', '25-30%', '30-35%', '35-40%', '&amp;gt;40%'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use the sort -&amp;gt; expression as&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;match(&lt;SPAN style="font-size: 13.3333px;"&gt;GP_Bucket&lt;/SPAN&gt;,'&amp;lt;10%','10-14%','14-20%','20-25%', '25-30%', '30-35%', '35-40%', '&amp;gt;40%') &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;which didn't sort as per the order as shown in the image above.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I even tried using in the back end script as (Sort -&amp;gt; expression -&amp;gt; &lt;STRONG&gt;GM_Bucket_Sort&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(GP_Bucket = '&amp;lt;10%', 1,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(GP_Bucket= '10-14%',2,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(GP_Bucket = '14-20%',3,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(GP_Bucket = '20-25%',4,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(GP_Bucket = '25-30%',5,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(GP_Bucket = '30-35%',6,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(GP_Bucket = '35-40%',7,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(GP_Bucket = '&amp;gt;40%',8)))))))) as GM_Bucket_Sort,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Is there any other way to sort the dimension, or am I doing wrong here? any help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Bhavesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-the-dimension-in-the-bar-chart/m-p/129635#M752340</guid>
      <dc:creator>bhaveshp90</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort the dimension in the bar chart?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-the-dimension-in-the-bar-chart/m-p/129636#M752341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bhavesh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you able to supply us with a qvw?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 13:09:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-the-dimension-in-the-bar-chart/m-p/129636#M752341</guid>
      <dc:creator>kingsleyh</dc:creator>
      <dc:date>2018-10-23T13:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort the dimension in the bar chart?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-the-dimension-in-the-bar-chart/m-p/129637#M752342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How is the field GP_Bucket created in the script? Or is it a calculated dimension?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 13:13:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-the-dimension-in-the-bar-chart/m-p/129637#M752342</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2018-10-23T13:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort the dimension in the bar chart?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-the-dimension-in-the-bar-chart/m-p/129638#M752343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;create an inline load like below just before the Load script where you have the field GP_Bucket.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GP_BucketSort:&lt;/P&gt;&lt;P&gt;Load * inline [&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;GP_Bucket&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &amp;lt;10%&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;10-14%&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;14-20%&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;20-25%&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;25-30%30-35%&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;35-40%&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;gt;40%&lt;/SPAN&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reload the app and then in your Bar Chart Properties &amp;gt; Sort &amp;gt; Select Dimension GP_Bucket and then select sort by&lt;/P&gt;&lt;P&gt;Load Order &amp;gt; Original&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 13:16:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-the-dimension-in-the-bar-chart/m-p/129638#M752343</guid>
      <dc:creator>sudeepkm</dc:creator>
      <dc:date>2018-10-23T13:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort the dimension in the bar chart?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-the-dimension-in-the-bar-chart/m-p/129639#M752344</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;You GM_Bucket_Sort should work. I would set the expression:&lt;/P&gt;&lt;P&gt;Max({1}GM_Bucket_Sort) myself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure that the sort expression is the first ranked one and there are no other check boxes clicked on.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 13:17:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-the-dimension-in-the-bar-chart/m-p/129639#M752344</guid>
      <dc:creator>niclaz79</dc:creator>
      <dc:date>2018-10-23T13:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort the dimension in the bar chart?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-the-dimension-in-the-bar-chart/m-p/129640#M752345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Post your workbook if you still didn't get the desired result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 13:23:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-the-dimension-in-the-bar-chart/m-p/129640#M752345</guid>
      <dc:creator>achettipalli</dc:creator>
      <dc:date>2018-10-23T13:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort the dimension in the bar chart?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-the-dimension-in-the-bar-chart/m-p/129641#M752346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is how I created in the scipt ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(GM_As_Sold &amp;lt;= 10, '&amp;lt;10%',&lt;/P&gt;&lt;P&gt;if(GM_As_Sold &amp;gt; 10 and GM_As_Sold &amp;lt;= 14 ,'10-14%',&lt;/P&gt;&lt;P&gt;if(GM_As_Sold &amp;gt; 14 and GM_As_Sold &amp;lt;= 20, '14-20%',&lt;/P&gt;&lt;P&gt;if(GM_As_Sold &amp;gt; 20 and GM_As_Sold &amp;lt;= 25, '20-25%',&lt;/P&gt;&lt;P&gt;if(GM_As_Sold &amp;gt; 25 and GM_As_Sold &amp;lt;= 30, '25-30%',&lt;/P&gt;&lt;P&gt;if(GM_As_Sold &amp;gt; 30 and GM_As_Sold &amp;lt;= 35, '30-35%',&lt;/P&gt;&lt;P&gt;if(GM_As_Sold &amp;gt; 35 and GM_As_Sold &amp;lt;= 40, '35-40%',&lt;/P&gt;&lt;P&gt;if(GM_As_Sold &amp;gt; 40, '&amp;gt;40%')))))))) as GM_Bucket,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 14:35:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-the-dimension-in-the-bar-chart/m-p/129641#M752346</guid>
      <dc:creator>bhaveshp90</dc:creator>
      <dc:date>2018-10-23T14:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort the dimension in the bar chart?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-the-dimension-in-the-bar-chart/m-p/129642#M752347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you Niclas, it worked like a charm &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 14:42:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-the-dimension-in-the-bar-chart/m-p/129642#M752347</guid>
      <dc:creator>bhaveshp90</dc:creator>
      <dc:date>2018-10-23T14:42:25Z</dc:date>
    </item>
  </channel>
</rss>

