<?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: Fixed x-axis and sorting problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Fixed-x-axis-and-sorting-problem/m-p/388213#M571397</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The easiest way is to load your string values [LMH] in the right order when the script starts. And then you can use Load Sort order.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LMHSortOrder:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;LMH&lt;/P&gt;&lt;P&gt;low&lt;/P&gt;&lt;P&gt;medium&lt;/P&gt;&lt;P&gt;high&lt;/P&gt;&lt;P&gt; ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the end you can drop it (QV remembers first loading order)&lt;/P&gt;&lt;P&gt;drop table LMHSortOrder;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 08 Sep 2012 08:46:52 GMT</pubDate>
    <dc:creator>whiteline</dc:creator>
    <dc:date>2012-09-08T08:46:52Z</dc:date>
    <item>
      <title>Fixed x-axis and sorting problem</title>
      <link>https://community.qlik.com/t5/QlikView/Fixed-x-axis-and-sorting-problem/m-p/388211#M571394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all. So I have a chart where the X-axis dimension is text, not numeric values. On the x-axis, I have low, medium, and high, and on the y-axis I have a count(distinct ID) expression.&lt;/P&gt;&lt;P&gt;I want the chart to display low, medium, and high, regardless of my selections. By default, if I select a category with only low records, the chart will get rid of the medium and high bars completely. I want it to show low, medium, and high, even if the values are zero.&lt;/P&gt;&lt;P&gt;I went to the Presentation tab and unchecked "Suppress Zero-Values" and this got me halfway there. Now, all bars show up even if they're zero, but now the sorting is screwed up.&lt;/P&gt;&lt;P&gt;So I wanted the bars to always show up as low, then medium, then high, in that order, so on the Sort tab I set it to sort by this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if([LMH] = 'low', 1, if([LMH] = 'medium', 2, if([LMH] = 'high', 3)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works under the default configuration, but when I suppress zero-values, the sorting gets screwed up. It shoves all the bars with zero values to the right, leaving the bars with values all the way to the left.&lt;/P&gt;&lt;P&gt;Any ideas? Let me know if you have questions. Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 21:56:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fixed-x-axis-and-sorting-problem/m-p/388211#M571394</guid>
      <dc:creator />
      <dc:date>2012-09-07T21:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed x-axis and sorting problem</title>
      <link>https://community.qlik.com/t5/QlikView/Fixed-x-axis-and-sorting-problem/m-p/388212#M571396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Eric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please post the sample solutions file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Venkat T&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Sep 2012 03:58:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fixed-x-axis-and-sorting-problem/m-p/388212#M571396</guid>
      <dc:creator />
      <dc:date>2012-09-08T03:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed x-axis and sorting problem</title>
      <link>https://community.qlik.com/t5/QlikView/Fixed-x-axis-and-sorting-problem/m-p/388213#M571397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The easiest way is to load your string values [LMH] in the right order when the script starts. And then you can use Load Sort order.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LMHSortOrder:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;LMH&lt;/P&gt;&lt;P&gt;low&lt;/P&gt;&lt;P&gt;medium&lt;/P&gt;&lt;P&gt;high&lt;/P&gt;&lt;P&gt; ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the end you can drop it (QV remembers first loading order)&lt;/P&gt;&lt;P&gt;drop table LMHSortOrder;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Sep 2012 08:46:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fixed-x-axis-and-sorting-problem/m-p/388213#M571397</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-08T08:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed x-axis and sorting problem</title>
      <link>https://community.qlik.com/t5/QlikView/Fixed-x-axis-and-sorting-problem/m-p/388214#M571398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the load order seemed to work. I set the chart to show all values, and unchecked suppress zero values, then I set the sort to Load Order, and it seems to be working fine now. Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 16:38:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fixed-x-axis-and-sorting-problem/m-p/388214#M571398</guid>
      <dc:creator />
      <dc:date>2012-09-10T16:38:44Z</dc:date>
    </item>
  </channel>
</rss>

