<?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: Sort the values in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Sort-the-values/m-p/2548393#M110179</link>
    <description>&lt;P&gt;If the numeric value is important for the Movement dimension then you could consider loading the dimension as a dual value using the Movement as your string representation and your "Movement Sort Order" field as the underlying numeric value.&lt;/P&gt;&lt;P&gt;In the script do this when loading the data:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Dual(Movement, [Movement Sort Order]) as Movement&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By saving it as a dual then you will have the option to sort that dimension&amp;nbsp; numeric.&lt;/P&gt;</description>
    <pubDate>Tue, 05 May 2026 05:04:38 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2026-05-05T05:04:38Z</dc:date>
    <item>
      <title>Sort the values</title>
      <link>https://community.qlik.com/t5/App-Development/Sort-the-values/m-p/2548341#M110174</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;got the dimension as seen below&amp;nbsp;&lt;BR /&gt;these values got related numeric values in another dimension&lt;BR /&gt;is there a way to sort the values by the numeric dimension when the user selects the values from the upper filter bar?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ali_hijazi_0-1777879070382.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/188134iDDF18966808FC22F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ali_hijazi_0-1777879070382.png" alt="ali_hijazi_0-1777879070382.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2026 07:18:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sort-the-values/m-p/2548341#M110174</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2026-05-04T07:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Sort the values</title>
      <link>https://community.qlik.com/t5/App-Development/Sort-the-values/m-p/2548369#M110177</link>
      <description>&lt;P class=""&gt;If your numeric dimension is called "MovementSortOrder" for exemple, you can solve this in the Filter pane / Listbox properties in Qlik Sense / Qlik Cloud:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Select the filter object (Movement)&lt;/LI&gt;&lt;LI&gt;In the properties panel on the right, go to Sorting&lt;/LI&gt;&lt;LI&gt;Turn off Auto sorting&lt;/LI&gt;&lt;LI&gt;Uncheck "Sort by alphabetical"&lt;/LI&gt;&lt;LI&gt;Check "Sort by expression" and use an expression like:&lt;/LI&gt;&lt;/OL&gt;&lt;LI-CODE lang="css"&gt;=MovementSortOrder&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2026 15:27:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sort-the-values/m-p/2548369#M110177</guid>
      <dc:creator>priscilarubim</dc:creator>
      <dc:date>2026-05-04T15:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sort the values</title>
      <link>https://community.qlik.com/t5/App-Development/Sort-the-values/m-p/2548377#M110178</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/216"&gt;@ali_hijazi&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;If you need the selections sorted specifically within the &lt;STRONG&gt;Filter Pane&lt;/STRONG&gt; object,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/172757"&gt;@priscilarubim&lt;/a&gt;'s&amp;nbsp; approach is the way to go.&lt;/P&gt;&lt;P&gt;However, if you are trying to control the sort order in the &lt;STRONG&gt;Top Selection Bar&lt;/STRONG&gt;, it’s a different story. Currently, you can't achieve a custom sort there unless you create a Dual() field in the load script (see my previous post here: &lt;A href="https://community.qlik.com/t5/Visualization-and-Usability/How-to-sort-the-selection-filter-at-the-top-of-a-sheet/td-p/2517844" target="_blank" rel="noopener"&gt;Solved: How to sort the selection filter at the top of a s... - Qlik Community - 2517844&lt;/A&gt;). If you require the sort order to &lt;STRONG&gt;react to&lt;/STRONG&gt; a measure, this won't work since this method is static with the original definitions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A few things I’ve tested but not working:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Creating a synthetic dimension with Aggr() Function:&lt;/STRONG&gt; Creating a synthetic dimension (master dimension) like Aggr(Dual(field, -sum(amount)), field) sorts correctly within a chart/filter pane, but the Selection Bar still reverts to the original field's default sorting (alphabetically).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;CalcDim() function:&lt;/STRONG&gt; previous approach wrapped in a CalcDim() function (&lt;A href="https://help.qlik.com/en-US/sense/May2025/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/calcdim.htm" target="_blank" rel="noopener"&gt;CalcDim - chart function | Qlik Sense on Windows Help&lt;/A&gt;), but it's still not working as selections are done in the original fields.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The Dual() method remains the only consistent fix, though as you noted, it can't be assigned to a measure in the UI.&lt;/P&gt;&lt;P&gt;Maybe someone here can help or clarify if I've missed something.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2026 16:59:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sort-the-values/m-p/2548377#M110178</guid>
      <dc:creator>alexquimu</dc:creator>
      <dc:date>2026-05-04T16:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Sort the values</title>
      <link>https://community.qlik.com/t5/App-Development/Sort-the-values/m-p/2548393#M110179</link>
      <description>&lt;P&gt;If the numeric value is important for the Movement dimension then you could consider loading the dimension as a dual value using the Movement as your string representation and your "Movement Sort Order" field as the underlying numeric value.&lt;/P&gt;&lt;P&gt;In the script do this when loading the data:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Dual(Movement, [Movement Sort Order]) as Movement&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By saving it as a dual then you will have the option to sort that dimension&amp;nbsp; numeric.&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2026 05:04:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sort-the-values/m-p/2548393#M110179</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2026-05-05T05:04:38Z</dc:date>
    </item>
  </channel>
</rss>

