<?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 dimensions in a chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sorting-dimensions-in-a-chart/m-p/554006#M1132804</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do this&lt;/P&gt;&lt;P&gt;by sorting by Load order (if you loaded them in the good order)&lt;/P&gt;&lt;P&gt;by sorting them by an Expression (=1, 2, 3, 4, 5) depending on the 5 items listed above&amp;nbsp; (you load a table with your items &amp;amp; this expression)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Oct 2013 13:20:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-10-31T13:20:17Z</dc:date>
    <item>
      <title>Sorting dimensions in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-dimensions-in-a-chart/m-p/554004#M1132802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a chart showing responses from a survey, where the responses are Strongly Agree, Agree, Neither agree nor disagree, Disagree, Strongly Disagree.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the moment they are ordering alphabetically, but I'd like to order these as shown above. Any ideas on how I can do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in anticipation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 13:11:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-dimensions-in-a-chart/m-p/554004#M1132802</guid>
      <dc:creator />
      <dc:date>2013-10-31T13:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting dimensions in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-dimensions-in-a-chart/m-p/554005#M1132803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Best approach would IMHO to assign the dimension values a dual value (please check the dual() function in the Help), then sort by number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the chart, you can use a sort expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=match(ResponseField, 'Strongly Agree','Agree','Neither agree nor disagree','Disagree','Strongly Disagree')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 13:18:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-dimensions-in-a-chart/m-p/554005#M1132803</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-10-31T13:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting dimensions in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-dimensions-in-a-chart/m-p/554006#M1132804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do this&lt;/P&gt;&lt;P&gt;by sorting by Load order (if you loaded them in the good order)&lt;/P&gt;&lt;P&gt;by sorting them by an Expression (=1, 2, 3, 4, 5) depending on the 5 items listed above&amp;nbsp; (you load a table with your items &amp;amp; this expression)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 13:20:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-dimensions-in-a-chart/m-p/554006#M1132804</guid>
      <dc:creator />
      <dc:date>2013-10-31T13:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting dimensions in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-dimensions-in-a-chart/m-p/554007#M1132805</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;Load the possible responses in an inline table using the same field name in the order you require before you load your model data. Then at the end of the script drop this table. Now you can sort on load order, because Qlikview remembers the load order of the first time the field is loaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Before loading your model data:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;T_Responses:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;LOAD * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp; Response&lt;/P&gt;&lt;P&gt;&amp;nbsp; Strongly Agree&lt;/P&gt;&lt;P&gt;&amp;nbsp; Agree&lt;/P&gt;&lt;P&gt;&amp;nbsp; Neither agree nor disagree&lt;/P&gt;&lt;P&gt;&amp;nbsp; Disagree&lt;/P&gt;&lt;P&gt;&amp;nbsp; Strongly Disagree&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//... load model data here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//After loading the model data:&lt;/P&gt;&lt;P&gt;DROP Table &lt;EM&gt;T_Responses&lt;/EM&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field name in the inline (the first entry) must be the same field name that you use for responses in your model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 13:20:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-dimensions-in-a-chart/m-p/554007#M1132805</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2013-10-31T13:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting dimensions in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-dimensions-in-a-chart/m-p/554008#M1132806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Richard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; One solution is to create a flag into Load Script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; If (Response = 'Strongly Agree', 1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If (Response = 'Agree', 2, etc)) as Response_Flag,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then sort by Response_Flag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Or try the Match() function:&amp;nbsp;&amp;nbsp;&amp;nbsp; Match(Response, 'Strongly Agree', 'Agree', ...) (result is the position, 1, 2, 3, etc).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 13:22:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-dimensions-in-a-chart/m-p/554008#M1132806</guid>
      <dc:creator>fabio_vallone</dc:creator>
      <dc:date>2013-10-31T13:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting dimensions in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-dimensions-in-a-chart/m-p/554009#M1132807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone for their help.&amp;nbsp; All sorted &amp;amp; looking good!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 15:39:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-dimensions-in-a-chart/m-p/554009#M1132807</guid>
      <dc:creator />
      <dc:date>2013-10-31T15:39:12Z</dc:date>
    </item>
  </channel>
</rss>

