<?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 How to keep custom sort order in bar chart when displaying all values? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-keep-custom-sort-order-in-bar-chart-when-displaying-all/m-p/578304#M544209</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a simple bar chart showing production by hour. As the shift starts at 6am I have added the following sort expression;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Match([Hour], '6', '7', '8','9', '10', '11', '12', '13', '14', '15', '16','17', '18', '19', '20', '21', '22','23', '0', '1', '2', '3', '4', '5'&amp;nbsp; )&amp;nbsp; "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works but I would like the bar chart to display hours where there is no production. I therefore click the 'show all values' button on the dimension tab. The result of this is to move all of the 0 value bars to the left of the chart as in the screen shot below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="57297" alt="Bar chart by hour.png" class="jive-image" src="/legacyfs/online/57297_Bar chart by hour.png" style="width: 620px; height: 224px;" /&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how it i possible to keep these 0 value bars in their sort order?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Apr 2014 09:14:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-04-15T09:14:28Z</dc:date>
    <item>
      <title>How to keep custom sort order in bar chart when displaying all values?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-keep-custom-sort-order-in-bar-chart-when-displaying-all/m-p/578304#M544209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a simple bar chart showing production by hour. As the shift starts at 6am I have added the following sort expression;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Match([Hour], '6', '7', '8','9', '10', '11', '12', '13', '14', '15', '16','17', '18', '19', '20', '21', '22','23', '0', '1', '2', '3', '4', '5'&amp;nbsp; )&amp;nbsp; "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works but I would like the bar chart to display hours where there is no production. I therefore click the 'show all values' button on the dimension tab. The result of this is to move all of the 0 value bars to the left of the chart as in the screen shot below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="57297" alt="Bar chart by hour.png" class="jive-image" src="/legacyfs/online/57297_Bar chart by hour.png" style="width: 620px; height: 224px;" /&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how it i possible to keep these 0 value bars in their sort order?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 09:14:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-keep-custom-sort-order-in-bar-chart-when-displaying-all/m-p/578304#M544209</guid>
      <dc:creator />
      <dc:date>2014-04-15T09:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep custom sort order in bar chart when displaying all values?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-keep-custom-sort-order-in-bar-chart-when-displaying-all/m-p/578305#M544210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sort by Load Order?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 09:22:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-keep-custom-sort-order-in-bar-chart-when-displaying-all/m-p/578305#M544210</guid>
      <dc:creator>ThornOfCrowns</dc:creator>
      <dc:date>2014-04-15T09:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep custom sort order in bar chart when displaying all values?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-keep-custom-sort-order-in-bar-chart-when-displaying-all/m-p/578306#M544211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That does't work. It gives the random order below;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Bar chart by hour2.png" class="jive-image" src="/legacyfs/online/57299_Bar chart by hour2.png" style="width: 620px; height: 225px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 09:29:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-keep-custom-sort-order-in-bar-chart-when-displaying-all/m-p/578306#M544211</guid>
      <dc:creator />
      <dc:date>2014-04-15T09:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep custom sort order in bar chart when displaying all values?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-keep-custom-sort-order-in-bar-chart-when-displaying-all/m-p/578307#M544212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In sort &amp;gt;&amp;gt; expression &amp;gt;&amp;gt; type your expression like =Sum(BATCH_SIZE) and un check all option in sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And select Descending order&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 09:32:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-keep-custom-sort-order-in-bar-chart-when-displaying-all/m-p/578307#M544212</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-04-15T09:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep custom sort order in bar chart when displaying all values?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-keep-custom-sort-order-in-bar-chart-when-displaying-all/m-p/578308#M544213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 09:36:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-keep-custom-sort-order-in-bar-chart-when-displaying-all/m-p/578308#M544213</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-04-15T09:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep custom sort order in bar chart when displaying all values?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-keep-custom-sort-order-in-bar-chart-when-displaying-all/m-p/578309#M544214</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;I think the there is no Hour value for the hours where no production takes place, so the match fails for those bars (and returns 0).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this indeed the problem, one possible solution would be to create a dummy production value of 0 for these hours. Or create a separate table containing all 24 hours with the same field name, Hours. A bonus of this is that you can use the load order to sort - provided you create this table before loading the production data. A simple inline load will do it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hours:&lt;/P&gt;&lt;P&gt;LOAD * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hour&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 09:46:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-keep-custom-sort-order-in-bar-chart-when-displaying-all/m-p/578309#M544214</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-04-15T09:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep custom sort order in bar chart when displaying all values?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-keep-custom-sort-order-in-bar-chart-when-displaying-all/m-p/578310#M544215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loading an inline table and sorting from that worked great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 10:14:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-keep-custom-sort-order-in-bar-chart-when-displaying-all/m-p/578310#M544215</guid>
      <dc:creator />
      <dc:date>2014-04-15T10:14:47Z</dc:date>
    </item>
  </channel>
</rss>

