<?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 Sorting of GetFieldSelections() in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Sorting-of-GetFieldSelections/m-p/2059473#M86963</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I would like to understand how does Qlik Sense sort when displaying the values after applying the GetFieldSelections() function.&lt;/P&gt;
&lt;P&gt;For example, I have the following loaded:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;table:
load * inline [
	Selection
    Account Age
    Age
    Available Access Technology
    Channel
    Contract Binding
    Current Access Technology
    Flow
    Revenue Category
    ];&lt;/LI-CODE&gt;
&lt;P&gt;The loaded table is sorted alphabetically. When I use the GetFieldSelections(Selection, ', ' , 200) in the front end, I don't understand how it is sorted when displaying the figures.&lt;/P&gt;
&lt;P&gt;If I select "Account Age" and "Age", I get the following result, which is alphabetically sorted:&lt;/P&gt;
&lt;P&gt;Account Age, Age&lt;/P&gt;
&lt;P&gt;However, if I add "Channel", I get the following result:&lt;/P&gt;
&lt;P&gt;Channel, Account Age, Age&lt;/P&gt;
&lt;P&gt;I would need that it is still sorted when clicking on the values.&lt;/P&gt;
&lt;P&gt;Thanks for any help, it's highly appreciated!&lt;/P&gt;</description>
    <pubDate>Wed, 12 Apr 2023 08:54:23 GMT</pubDate>
    <dc:creator>charlie03</dc:creator>
    <dc:date>2023-04-12T08:54:23Z</dc:date>
    <item>
      <title>Sorting of GetFieldSelections()</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-of-GetFieldSelections/m-p/2059473#M86963</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I would like to understand how does Qlik Sense sort when displaying the values after applying the GetFieldSelections() function.&lt;/P&gt;
&lt;P&gt;For example, I have the following loaded:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;table:
load * inline [
	Selection
    Account Age
    Age
    Available Access Technology
    Channel
    Contract Binding
    Current Access Technology
    Flow
    Revenue Category
    ];&lt;/LI-CODE&gt;
&lt;P&gt;The loaded table is sorted alphabetically. When I use the GetFieldSelections(Selection, ', ' , 200) in the front end, I don't understand how it is sorted when displaying the figures.&lt;/P&gt;
&lt;P&gt;If I select "Account Age" and "Age", I get the following result, which is alphabetically sorted:&lt;/P&gt;
&lt;P&gt;Account Age, Age&lt;/P&gt;
&lt;P&gt;However, if I add "Channel", I get the following result:&lt;/P&gt;
&lt;P&gt;Channel, Account Age, Age&lt;/P&gt;
&lt;P&gt;I would need that it is still sorted when clicking on the values.&lt;/P&gt;
&lt;P&gt;Thanks for any help, it's highly appreciated!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 08:54:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-of-GetFieldSelections/m-p/2059473#M86963</guid>
      <dc:creator>charlie03</dc:creator>
      <dc:date>2023-04-12T08:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting of GetFieldSelections()</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-of-GetFieldSelections/m-p/2059554#M86966</link>
      <description>&lt;P&gt;Never really looked how the sorting happens within getfieldselections() and I rather doubt that there are possibilities to adjust the behaviour.&lt;/P&gt;
&lt;P&gt;If you really need a string-list of the values you could use: concat(distinct FIELD, ',') to get the values alpha-numerical sorted. Concat() has further the option to add a numerical third parameter which defined the sort-order. Such parameter might be created within the load, for example per recno() or rowno().&lt;/P&gt;
&lt;P&gt;If not such list is needed else the result should be used within a set analysis you may better take p() for it.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 11:30:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-of-GetFieldSelections/m-p/2059554#M86966</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-04-12T11:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting of GetFieldSelections()</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-of-GetFieldSelections/m-p/2059588#M86970</link>
      <description>&lt;P&gt;That worked, thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 12:45:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-of-GetFieldSelections/m-p/2059588#M86970</guid>
      <dc:creator>charlie03</dc:creator>
      <dc:date>2023-04-12T12:45:00Z</dc:date>
    </item>
  </channel>
</rss>

