<?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 dimension in bar chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/sort-dimension-in-bar-chart/m-p/239592#M90198</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jonathan,&lt;/P&gt;&lt;P&gt;it seems i can only include one file at a time.&lt;/P&gt;&lt;P&gt;i will send the spreadsheet in the next post!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;grtz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 17 Oct 2010 20:06:57 GMT</pubDate>
    <dc:creator>chriscools</dc:creator>
    <dc:date>2010-10-17T20:06:57Z</dc:date>
    <item>
      <title>sort dimension in bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/sort-dimension-in-bar-chart/m-p/239586#M90192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i have a bar chart with 8 different bars ( thanx to KuroKarl and Jonathan Dienst! [:)] ) ,&lt;/P&gt;&lt;P&gt;and i would like to sort them in a way i choose myself.&lt;/P&gt;&lt;P&gt;i can't use the methods from QV, it's not alfabethical or numerical that i wan't it.&lt;/P&gt;&lt;P&gt;is there a possibility to sort them in a manner i can decide myself? for example by typing the values somewhere by in an order&lt;/P&gt;&lt;P&gt;i want them? or by some kind of formula where i can specify the order?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx!&lt;/P&gt;&lt;P&gt;grtz,&lt;/P&gt;&lt;P&gt;chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Oct 2010 08:09:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sort-dimension-in-bar-chart/m-p/239586#M90192</guid>
      <dc:creator>chriscools</dc:creator>
      <dc:date>2010-10-17T08:09:17Z</dc:date>
    </item>
    <item>
      <title>sort dimension in bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/sort-dimension-in-bar-chart/m-p/239587#M90193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;P&gt;On the Chart Properties | Sort tab, you have several sort methods other than alpha/numerical. The three that may interest you are:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Sort by Y value - ranks the bars from largest to smallest or smallest to largest&lt;/LI&gt;&lt;LI&gt;Expression - allows you to enter any expression and the bars will be sorted by the results of the expression. For this to work, the expression value must be sensitive the field(s) used in the chart dimension&lt;/LI&gt;&lt;LI&gt;Load order - this is the original order in which the dimension field was loaded (grayed out for a calculated dimension)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Another option is to use a dual field for the dimension. Here is a script example of a dual field from an inline:&lt;/P&gt;&lt;P style="font-style: italic"&gt;LOAD Dual(BandName, DistMin) AS DistanceBand,&lt;BR /&gt; DistMin,&lt;BR /&gt; DistMax&lt;BR /&gt;INLINE&lt;BR /&gt;[&lt;BR /&gt; BandName, DistMin, DistMax&lt;BR /&gt; 'No move', 0, 0&lt;BR /&gt; '&amp;lt;1000km', 1, 1000&lt;BR /&gt; '1001-5000km', 1000, 5000&lt;BR /&gt; '5001-10000km', 5000, 10000&lt;BR /&gt; '10000-20000km', 10000, 20000&lt;BR /&gt; '&amp;gt;20000km', 20000,&lt;BR /&gt; ];&lt;/P&gt;&lt;P&gt;This field, when used as a dimension, can be sorted by the numerical part. You can specify the sort order in any way that you like.&lt;/P&gt;&lt;P&gt;Choose the method that best suits your application.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Oct 2010 08:24:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sort-dimension-in-bar-chart/m-p/239587#M90193</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2010-10-17T08:24:58Z</dc:date>
    </item>
    <item>
      <title>sort dimension in bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/sort-dimension-in-bar-chart/m-p/239588#M90194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx for your reply!&lt;/P&gt;&lt;P&gt;i thing the inline solution with the dual field provides the most flexibility, so i want to go for that option.&lt;/P&gt;&lt;P&gt;sadly i must be doing something wrong because it doesn't work... &lt;IMG alt="Stick out tongue" src="http://community.qlik.com/emoticons/emotion-4.gif" /&gt;&lt;/P&gt;&lt;P&gt;i have this statement in the script:&lt;/P&gt;&lt;P&gt;load dual ('status bestelbon', volgorde) as [status bestelbon] inline&lt;BR /&gt;[ 'status bestelbon' , volgorde&lt;BR /&gt;'in picking gezet', 1&lt;BR /&gt;'in picking', 2&lt;BR /&gt;'picking ok', 3&lt;BR /&gt;inpak, 4&lt;BR /&gt;'inpak ok', 5&lt;BR /&gt;aanvul, 6&lt;BR /&gt;'aanvul ok', 7&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;when i rename the dual field as 'status bestelbons' it makes a key with the same field in the data table.&lt;/P&gt;&lt;P&gt;when i try to sort the dimension 'status bestelbons' by numerical value, it puts 'aanvul' up front...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any idea what i might be doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;grtz,&lt;/P&gt;&lt;P&gt;chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Oct 2010 13:01:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sort-dimension-in-bar-chart/m-p/239588#M90194</guid>
      <dc:creator>chriscools</dc:creator>
      <dc:date>2010-10-17T13:01:12Z</dc:date>
    </item>
    <item>
      <title>sort dimension in bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/sort-dimension-in-bar-chart/m-p/239589#M90195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;P&gt;I am not sure what is wrong, but try this:&lt;/P&gt;&lt;P style="font-style: italic"&gt;load dual (status, volgorde) as [status bestelbon] inline&lt;BR /&gt;[&lt;BR /&gt; status, volgorde&lt;BR /&gt; 'in picking gezet', 1&lt;BR /&gt; 'in picking', 2&lt;BR /&gt; 'picking ok', 3&lt;BR /&gt; 'inpak', 4&lt;BR /&gt; 'inpak ok', 5&lt;BR /&gt; 'aanvul', 6&lt;BR /&gt; 'aanvul ok', 7&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Oct 2010 13:49:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sort-dimension-in-bar-chart/m-p/239589#M90195</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2010-10-17T13:49:49Z</dc:date>
    </item>
    <item>
      <title>sort dimension in bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/sort-dimension-in-bar-chart/m-p/239590#M90196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i can't seem to get it working...&lt;/P&gt;&lt;P&gt;this is the script (reduced to keep it simple!):&lt;/P&gt;&lt;P&gt;load dual (status , volgorde) as [status bestelbon] inline&lt;BR /&gt;[&lt;BR /&gt;status, volgorde&lt;BR /&gt;'in picking gezet', 1&lt;BR /&gt;'in picking', 2&lt;BR /&gt;'picking ok', 3&lt;BR /&gt;inpak, 4&lt;BR /&gt;'inpak ok', 5&lt;BR /&gt;aanvul, 6&lt;BR /&gt;'aanvul ok', 7&lt;BR /&gt;'in controle gezet', 8&lt;BR /&gt;'in controle', 9&lt;BR /&gt;'controle ok' , 10&lt;BR /&gt;gewikkeld, 11&lt;BR /&gt;'gefactureerd', 12&lt;BR /&gt;wachtend, 13&lt;BR /&gt;geannuleerd, 14&lt;BR /&gt;geleverd, 15&lt;BR /&gt;verzonden, 16&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;LOAD bestelbonnummer,&lt;BR /&gt; [status bestelbon],&lt;BR /&gt;FROM&lt;BR /&gt;&lt;L&gt;&lt;BR /&gt;(biff, embedded labels, table is [status pickbons$]);&lt;/L&gt;&lt;/P&gt;&lt;P&gt;The dimension i use in the bar chart is [status bestelbon],&lt;/P&gt;&lt;P&gt;the expression is:&lt;/P&gt;&lt;P&gt;count ( {$ &amp;lt; [status bestelbon] ={ 'in picking gezet' , 'in picking' , 'picking ok' , 'inpak', 'inpak ok', 'aanvul' , 'aanvul ok'} &amp;gt; } bestelbonnummer)&lt;/P&gt;&lt;P&gt;the dimension is then sorted by number.&lt;/P&gt;&lt;P&gt;but the result is this:&lt;/P&gt;&lt;P&gt;[View:http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/7711.qv-table.docx:550:100]&lt;/P&gt;&lt;P&gt;i don't know if you will be able to see the picture of the bar chart, but the order that it shows is this:&lt;/P&gt;&lt;P&gt;picking ok, aanvul ok, inpak, inpak ok, in picking, aanvul, in picking gezet.&lt;/P&gt;&lt;P&gt;i hope it can be solved in any way, because this makes the bar chart useless...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx,&lt;/P&gt;&lt;P&gt;chris&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Oct 2010 19:26:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sort-dimension-in-bar-chart/m-p/239590#M90196</guid>
      <dc:creator>chriscools</dc:creator>
      <dc:date>2010-10-17T19:26:35Z</dc:date>
    </item>
    <item>
      <title>sort dimension in bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/sort-dimension-in-bar-chart/m-p/239591#M90197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;P&gt;I see the bar chart but I don't see anything that looks wrong (other than the output &lt;IMG alt="Big Smile" src="http://community.qlik.com/emoticons/emotion-2.gif" /&gt;!)&lt;/P&gt;&lt;P&gt;Can you post your QVW so that I can have a look and hopefully see what is going on. If the data set is too large, or sensitive, create a subset and post that. It might also be useful to see a sample of the data from the spreadsheet.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Oct 2010 19:51:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sort-dimension-in-bar-chart/m-p/239591#M90197</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2010-10-17T19:51:49Z</dc:date>
    </item>
    <item>
      <title>sort dimension in bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/sort-dimension-in-bar-chart/m-p/239592#M90198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jonathan,&lt;/P&gt;&lt;P&gt;it seems i can only include one file at a time.&lt;/P&gt;&lt;P&gt;i will send the spreadsheet in the next post!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;grtz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Oct 2010 20:06:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sort-dimension-in-bar-chart/m-p/239592#M90198</guid>
      <dc:creator>chriscools</dc:creator>
      <dc:date>2010-10-17T20:06:57Z</dc:date>
    </item>
    <item>
      <title>sort dimension in bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/sort-dimension-in-bar-chart/m-p/239593#M90199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is the spreadsheet!&lt;/P&gt;&lt;P&gt;grtz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Oct 2010 20:09:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sort-dimension-in-bar-chart/m-p/239593#M90199</guid>
      <dc:creator>chriscools</dc:creator>
      <dc:date>2010-10-17T20:09:48Z</dc:date>
    </item>
    <item>
      <title>sort dimension in bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/sort-dimension-in-bar-chart/m-p/239594#M90200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;P&gt;The problem was that the field was not properly joining to the dual values - the load from the spreadsheet simply created non-dual plain text values that looked the same (but were not) and these were added to the [status bestelbon] field. For this type of problem, I add two listboxes to the model - one containing the field ([status bestelbon]) and one containing the expression &lt;I&gt;num([status bestelbon])&lt;/I&gt;. Then it becomes easier to see that the [status bestelbon] values from the spreadsheet were not asscoiated with the dual values loaded inline.&lt;/P&gt;&lt;P&gt;The attached model solves this by:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;inline loading a mapping table that maps the status bestelbons to the volgorde values&lt;/LI&gt;&lt;LI&gt;loading the main table (the mapping will be applied in sbnumber. sbtext contains the unconverted status bestelbons values)&lt;/LI&gt;&lt;LI&gt;joining the table to itself, building the dual value from the sbtext and sbnumber fields&lt;/LI&gt;&lt;LI&gt;dropping the now unneeded sbtext and sbnumber temp fields&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This forces the load to use the correct values.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Oct 2010 21:10:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sort-dimension-in-bar-chart/m-p/239594#M90200</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2010-10-17T21:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: sort dimension in bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/sort-dimension-in-bar-chart/m-p/239595#M90201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello! You have to use the Match() Function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 16:21:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sort-dimension-in-bar-chart/m-p/239595#M90201</guid>
      <dc:creator>pgalvezt</dc:creator>
      <dc:date>2012-06-13T16:21:00Z</dc:date>
    </item>
  </channel>
</rss>

