<?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: Make the Getcurrentselections function sort its return value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Make-the-Getcurrentselections-function-sort-its-return-value/m-p/391748#M485737</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'm not sure if I understood what you need, but try this:&lt;/P&gt;&lt;P&gt;=GetFieldSelections($(=pick(match(GetCurrentField([New Group]), 'Dim1', 'Dim2', 'Dim3'), '', 'Dim1', 'Dim2')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Match() content, replace the Dim1, Dim2, Dim3 with your Dimensions in the correct order.&lt;/P&gt;&lt;P&gt;In the Pick() content, do the same, but consider that it must pair the Upper Dimension so the Lower dimension will not appear here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached a sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you&lt;/P&gt;&lt;P&gt;Fernando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Apr 2013 22:35:34 GMT</pubDate>
    <dc:creator>fosuzuki</dc:creator>
    <dc:date>2013-04-23T22:35:34Z</dc:date>
    <item>
      <title>Make the Getcurrentselections function sort its return value</title>
      <link>https://community.qlik.com/t5/QlikView/Make-the-Getcurrentselections-function-sort-its-return-value/m-p/391747#M485736</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;in a textbox in my current document, I want to show the last selection (actually, I have a drilldown group as dimension and I want to display the level_I_just_came_down_from). The function works fine. It does not, however, display the selections in the order I make them - since the selections actually represent the process of drilling down into the data and I actually want to display only the next_level_up, not all the prior selections, the sorting order is very crucial.&lt;/P&gt;&lt;P&gt;Can anybody lend me a hand here? What is the default sorting order of that function and how can I influence it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 15:42:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Make-the-Getcurrentselections-function-sort-its-return-value/m-p/391747#M485736</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-04-23T15:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Make the Getcurrentselections function sort its return value</title>
      <link>https://community.qlik.com/t5/QlikView/Make-the-Getcurrentselections-function-sort-its-return-value/m-p/391748#M485737</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'm not sure if I understood what you need, but try this:&lt;/P&gt;&lt;P&gt;=GetFieldSelections($(=pick(match(GetCurrentField([New Group]), 'Dim1', 'Dim2', 'Dim3'), '', 'Dim1', 'Dim2')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Match() content, replace the Dim1, Dim2, Dim3 with your Dimensions in the correct order.&lt;/P&gt;&lt;P&gt;In the Pick() content, do the same, but consider that it must pair the Upper Dimension so the Lower dimension will not appear here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached a sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you&lt;/P&gt;&lt;P&gt;Fernando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 22:35:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Make-the-Getcurrentselections-function-sort-its-return-value/m-p/391748#M485737</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2013-04-23T22:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Make the Getcurrentselections function sort its return value</title>
      <link>https://community.qlik.com/t5/QlikView/Make-the-Getcurrentselections-function-sort-its-return-value/m-p/391749#M485738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fernando,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes, that example looks exactly like what I want. The textbox only displays the next-upper value from out of the drilldown group. I don't quite understand the syntax of your expression yet, but I'll try to redo it that way in my document.&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.: One more question rgd. this and a problem:&lt;/P&gt;&lt;P&gt;- Problems first: I get an error in the expression when I enter the name of my group: The name is &amp;gt;Packbereich&amp;lt; - in the label_field in the &amp;gt;edit group&amp;lt; dialog, there is exactly that name, too.&lt;/P&gt;&lt;P&gt;- A question: Once I have this working so far, can I expand it - and how - to encompass more levels (I will have five or six in the end, the very first (actually not part of the drilldown group) will be a date selection and then there will be four or five drilldown levels.&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.P.S.: Ok, the problem is solved - don't ask me how, I changed it and changed it back and now it's seemingly the very same as before, but it works &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So only the question of expanding that syntax remains.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 06:50:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Make-the-Getcurrentselections-function-sort-its-return-value/m-p/391749#M485738</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-04-24T06:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Make the Getcurrentselections function sort its return value</title>
      <link>https://community.qlik.com/t5/QlikView/Make-the-Getcurrentselections-function-sort-its-return-value/m-p/391750#M485739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To encompass more levels and consider the Date selection as the first, you just have to add them as following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=GetFieldSelections($(=pick(match(GetCurrentField([New Group]), 'Dim1', 'Dim2', 'Dim3', 'Dim4', 'Dim5', 'Dim6'), 'DateField', 'Dim1', 'Dim2', 'Dim3', 'Dim4', 'Dim5')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this works.&lt;/P&gt;&lt;P&gt;Fernando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 20:21:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Make-the-Getcurrentselections-function-sort-its-return-value/m-p/391750#M485739</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2013-04-24T20:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Make the Getcurrentselections function sort its return value</title>
      <link>https://community.qlik.com/t5/QlikView/Make-the-Getcurrentselections-function-sort-its-return-value/m-p/391751#M485740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;I'll try this. I'm pretty sure this will work, it looks very good.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 15:10:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Make-the-Getcurrentselections-function-sort-its-return-value/m-p/391751#M485740</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-04-25T15:10:07Z</dc:date>
    </item>
  </channel>
</rss>

