<?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: QV - Stacked bar chart custom order in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/QV-Stacked-bar-chart-custom-order/m-p/1027636#M525092</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;one solution could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_207017_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/116054_QlikCommunity_Thread_207017_Pic1.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_207017_Pic2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/116055_QlikCommunity_Thread_207017_Pic2.JPG" style="font-size: 13.3333px; max-width: 620px; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14564397438205377" jivemacro_uid="_14564397438205377"&gt;
&lt;P&gt;tapPrio:&lt;/P&gt;
&lt;P&gt;LOAD *, RecNo() as prioNum&lt;/P&gt;
&lt;P&gt;Inline [&lt;/P&gt;
&lt;P&gt;priority&lt;/P&gt;
&lt;P&gt;Blocker&lt;/P&gt;
&lt;P&gt;Trivial&lt;/P&gt;
&lt;P&gt;Minor&lt;/P&gt;
&lt;P&gt;Major&lt;/P&gt;
&lt;P&gt;Critical&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabBugs:&lt;/P&gt;
&lt;P&gt;LOAD RecNo() as BugID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pick(Ceil(Rand()*5),'Blocker', 'Trivial', 'Minor', 'Major', 'Critical') as priority,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Today()-Ceil(1000*Rand())) as [report date]&lt;/P&gt;
&lt;P&gt;AutoGenerate 30;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Feb 2016 22:36:07 GMT</pubDate>
    <dc:creator>MarcoWedel</dc:creator>
    <dc:date>2016-02-25T22:36:07Z</dc:date>
    <item>
      <title>QV - Stacked bar chart custom order</title>
      <link>https://community.qlik.com/t5/QlikView/QV-Stacked-bar-chart-custom-order/m-p/1027634#M525090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, i have a stacked bar chart where i display bugs and each "stack" is for different sort of bugs. But i can display them only alphabetically asc or desc so - Trivial, Minor, Major, Critical, Blocker&amp;nbsp;&amp;nbsp; or Blocker, Critical, Major, Minor, Trivial. Bud i don´t want alphabetical order i want it based on the priority so Blocker, Trivial, Minor, Major, Critical. How to do that plsy?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 12:49:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-Stacked-bar-chart-custom-order/m-p/1027634#M525090</guid>
      <dc:creator />
      <dc:date>2016-02-25T12:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: QV - Stacked bar chart custom order</title>
      <link>https://community.qlik.com/t5/QlikView/QV-Stacked-bar-chart-custom-order/m-p/1027635#M525091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can sort by expression and use this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pick(Match([Bug Type], 'Blocker', 'Trivial', 'Minor', 'Major', 'Critical'), 1, 2, 3, 4, 5)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 16:37:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-Stacked-bar-chart-custom-order/m-p/1027635#M525091</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-25T16:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: QV - Stacked bar chart custom order</title>
      <link>https://community.qlik.com/t5/QlikView/QV-Stacked-bar-chart-custom-order/m-p/1027636#M525092</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;one solution could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_207017_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/116054_QlikCommunity_Thread_207017_Pic1.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_207017_Pic2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/116055_QlikCommunity_Thread_207017_Pic2.JPG" style="font-size: 13.3333px; max-width: 620px; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14564397438205377" jivemacro_uid="_14564397438205377"&gt;
&lt;P&gt;tapPrio:&lt;/P&gt;
&lt;P&gt;LOAD *, RecNo() as prioNum&lt;/P&gt;
&lt;P&gt;Inline [&lt;/P&gt;
&lt;P&gt;priority&lt;/P&gt;
&lt;P&gt;Blocker&lt;/P&gt;
&lt;P&gt;Trivial&lt;/P&gt;
&lt;P&gt;Minor&lt;/P&gt;
&lt;P&gt;Major&lt;/P&gt;
&lt;P&gt;Critical&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabBugs:&lt;/P&gt;
&lt;P&gt;LOAD RecNo() as BugID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pick(Ceil(Rand()*5),'Blocker', 'Trivial', 'Minor', 'Major', 'Critical') as priority,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Today()-Ceil(1000*Rand())) as [report date]&lt;/P&gt;
&lt;P&gt;AutoGenerate 30;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 22:36:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-Stacked-bar-chart-custom-order/m-p/1027636#M525092</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-02-25T22:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: QV - Stacked bar chart custom order</title>
      <link>https://community.qlik.com/t5/QlikView/QV-Stacked-bar-chart-custom-order/m-p/1027637#M525093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I typically will do something like this in my script before the main load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;[Bug Type Order]:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Bug Type&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Blocker&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Trivial&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Minor&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Major&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Critical&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do your main load, then:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;DROP TABLE [Bug Type Order];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in the chart, sort by load order. I don't like fiddling with sort expressions in charts, or having an extra table lying around complicating my table model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: modified &lt;A href="https://community.qlik.com/qlik-users/61824"&gt;MarcoWedel&lt;/A&gt;'s example to demonstrate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 23:21:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-Stacked-bar-chart-custom-order/m-p/1027637#M525093</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-02-25T23:21:24Z</dc:date>
    </item>
  </channel>
</rss>

