<?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 Order by expression in Multi Box in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Order-by-expression-in-Multi-Box/m-p/273059#M586703</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks Erich, that works!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Jun 2011 11:52:18 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-06-08T11:52:18Z</dc:date>
    <item>
      <title>Order by expression in Multi Box</title>
      <link>https://community.qlik.com/t5/QlikView/Order-by-expression-in-Multi-Box/m-p/273055#M586699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, so I have a little application with just two fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Name&lt;/P&gt;&lt;P&gt;NameSortOrder&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am populating with just a few values in an inline load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;TestOrdering:&lt;/PRE&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;load * inline [&lt;/PRE&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;Name,NameSortOrder&lt;/PRE&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;'--- Global', '--- Global'&lt;/PRE&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;'-- Commercial', '-- Commercial'&lt;/PRE&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;'-- Insurance', '-- Insurance'&lt;/PRE&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;'- Commercial Subgroup', '-- Commercial - Commercial Subgroup' ];&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;
&lt;/PRE&gt;&lt;P&gt;When I create a multi box, showing Name, but ordering by the expression NameSortOrder, this doesn't seem to work. Iam hoping to see '- Commercial Subgroup' between '-- Commercial' and '-- Insurance' , instead it appears at the end of the list.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 11:25:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-by-expression-in-Multi-Box/m-p/273055#M586699</guid>
      <dc:creator />
      <dc:date>2011-06-08T11:25:17Z</dc:date>
    </item>
    <item>
      <title>Order by expression in Multi Box</title>
      <link>https://community.qlik.com/t5/QlikView/Order-by-expression-in-Multi-Box/m-p/273056#M586700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess that if you want to order it by expression, QV will try to order the numbers.&lt;/P&gt;&lt;P&gt;Then, it would be easier if you could create another column, like this: &lt;/P&gt;&lt;P&gt;TestOrdering:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load * inline [&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Name,NameSortOrder,Order&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'--- Global', '--- Global' ,1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'-- Commercial', '-- Commercial', 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'-- Insurance', '-- Insurance',4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'- Commercial Subgroup', '-- Commercial - Commercial Subgroup',3 ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, you sort it by Order&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;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 11:33:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-by-expression-in-Multi-Box/m-p/273056#M586700</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-06-08T11:33:19Z</dc:date>
    </item>
    <item>
      <title>Order by expression in Multi Box</title>
      <link>https://community.qlik.com/t5/QlikView/Order-by-expression-in-Multi-Box/m-p/273057#M586701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Erich, that seems to work better. However it presents another issue. In my little test app with an inline load, this is fine. However in my real app I won't know what items to expect and could do with generating a sort order based on the text field. Any ideas how to achieve this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 11:39:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-by-expression-in-Multi-Box/m-p/273057#M586701</guid>
      <dc:creator />
      <dc:date>2011-06-08T11:39:55Z</dc:date>
    </item>
    <item>
      <title>Order by expression in Multi Box</title>
      <link>https://community.qlik.com/t5/QlikView/Order-by-expression-in-Multi-Box/m-p/273058#M586702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could create a order field dynamically on your script: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TestOrdering:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load * inline [&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Name,NameSortOrder&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'--- Global', '--- Global'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'-- Commercial', '-- Commercial'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'-- Insurance', '-- Insurance'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'- Commercial Subgroup', '-- Commercial - Commercial Subgroup'];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Order:&lt;/P&gt;&lt;P&gt;load NameSortOrder, rowno() as Order&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident TestOrdering&lt;/P&gt;&lt;P&gt;order by NameSortOrder asc&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 11:45:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-by-expression-in-Multi-Box/m-p/273058#M586702</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-06-08T11:45:04Z</dc:date>
    </item>
    <item>
      <title>Order by expression in Multi Box</title>
      <link>https://community.qlik.com/t5/QlikView/Order-by-expression-in-Multi-Box/m-p/273059#M586703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks Erich, that works!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 11:52:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-by-expression-in-Multi-Box/m-p/273059#M586703</guid>
      <dc:creator />
      <dc:date>2011-06-08T11:52:18Z</dc:date>
    </item>
    <item>
      <title>Order by expression in Multi Box</title>
      <link>https://community.qlik.com/t5/QlikView/Order-by-expression-in-Multi-Box/m-p/273060#M586704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Unfortunately this didn't quite work in my QVW, or at least it won't work until I rework the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider this inline load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Order:&lt;/P&gt;&lt;P&gt;load * inline [&lt;/P&gt;&lt;P&gt;Name, SortOrder, %Key&lt;/P&gt;&lt;P&gt;'--- Global', 1, 1&lt;/P&gt;&lt;P&gt;'-- Commercial', 2, 1&lt;/P&gt;&lt;P&gt;'-- Insurance', 4, 1&lt;/P&gt;&lt;P&gt;'- Commercial Subgroup',3, 1&lt;/P&gt;&lt;P&gt;'--- Global', 1, 2&lt;/P&gt;&lt;P&gt;'-- Commercial', 2, 2&lt;/P&gt;&lt;P&gt;'-- Insurance', 4, 2&lt;/P&gt;&lt;P&gt;'- Commercial Subgroup', 3, 2 ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have now added a field %Key, which I'm going to use to link to another table. Now, having build a Name multi box, ordered by expression 'SortOrder', when no Name is selected the list is ordered correctly. But when I select a Name, the list is no longer sorted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have reported this and it has been acknowledged as a bug.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2011 13:19:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-by-expression-in-Multi-Box/m-p/273060#M586704</guid>
      <dc:creator />
      <dc:date>2011-06-20T13:19:54Z</dc:date>
    </item>
  </channel>
</rss>

