<?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: how to get last selected field value? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-get-last-selected-field-value/m-p/478965#M178906</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, "getSelectedFields(Changes)" should have been "getFieldSelections(Changes)" in the question. I have edited it to reflect this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And yes, I would like to get the last selected field in a listbox.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jan 2014 21:17:25 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-07T21:17:25Z</dc:date>
    <item>
      <title>how to get last selected field value?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-last-selected-field-value/m-p/478963#M178904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am new to QlikView and I am trying to figure out how I might get the last selected field value from the field [Choices]. My original idea was to call getFieldSelections(Choices), then parse out the last value. However, this function sorts the values, thereby ruining my plan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have spent a long time searching, but no luck finding an answer. Your help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Kevin Kientopp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 20:59:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-last-selected-field-value/m-p/478963#M178904</guid>
      <dc:creator />
      <dc:date>2014-01-07T20:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: how to get last selected field value?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-last-selected-field-value/m-p/478964#M178905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried getfieldselections()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By last selected field do you mean the order that the user clicked on the fields in the listbox?&lt;/P&gt;&lt;P&gt;I am not sure that this selection order is available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;getfieldselections ( FieldName [, ValueSep [, MaxValues]])&lt;/P&gt;&lt;P&gt;Returns a string with the current selections in a field.ValueSepis the separator to be put between field values. &lt;/P&gt;&lt;P&gt;The default is ', '&lt;/P&gt;&lt;P&gt;Maxvalues is the maximum number of field values to be individually listed. &lt;/P&gt;&lt;P&gt;When a larger number of valuesis selected the format 'x of y values' will be used instead. &lt;/P&gt;&lt;P&gt;The default is 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Examples &lt;/P&gt;&lt;P&gt;getfieldselections ( Year )&lt;/P&gt;&lt;P&gt;getfieldselections ( Year, '; ' )&lt;/P&gt;&lt;P&gt;getfieldselections ( Year, '; ' , 10 )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 21:10:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-last-selected-field-value/m-p/478964#M178905</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2014-01-07T21:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to get last selected field value?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-last-selected-field-value/m-p/478965#M178906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, "getSelectedFields(Changes)" should have been "getFieldSelections(Changes)" in the question. I have edited it to reflect this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And yes, I would like to get the last selected field in a listbox.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 21:17:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-last-selected-field-value/m-p/478965#M178906</guid>
      <dc:creator />
      <dc:date>2014-01-07T21:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to get last selected field value?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-last-selected-field-value/m-p/478966#M178907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can get through last selected data set using set analysis to reference the $1 set. This is the equivalent of selecting Back. Not sure this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suppose the key question is how are you looking to use this last value once you have it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 21:28:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-last-selected-field-value/m-p/478966#M178907</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2014-01-07T21:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to get last selected field value?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-last-selected-field-value/m-p/478967#M178908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you provide me the line of code doing that? I am unsure of what function I would pass the SetExpression into. Something like "concat({$1} Choices)".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example of what I am trying to accomplish:&lt;/P&gt;&lt;P&gt;"A", "B", "C", "D" each represent a field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a listbox using windows checkboxes with the values: [A, B, C, D]&lt;/P&gt;&lt;P&gt;They can and will want to select multiple items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If they check the items in this order: A -&amp;gt; D -&amp;gt; C. &lt;/P&gt;&lt;P&gt;I would like to know that the last selected item was "C".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would then have a 2nd listbox that displays the values of "C" so that the user may make selections there. I only want 2 listboxes shown at one time in order to keep a clean UI for the user.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 21:45:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-last-selected-field-value/m-p/478967#M178908</guid>
      <dc:creator />
      <dc:date>2014-01-07T21:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to get last selected field value?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-last-selected-field-value/m-p/478968#M178909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kevin, Not sure that I'm missing something in your requirement...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your data model has associated the data in dimension 1 (A,B,C,...) correctly with the data in dimension2 (A1, A2, B1, B2, C1, C2), selecting C in Dim1 will automatically restrict the available selections in Dim2 to C1,C2 without any other expressions. Selecting A in Dim 1 will only select A1, A2 as associated data in Dim2.&lt;/P&gt;&lt;P&gt;This is how the associative model in QlikView works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How is your Choices data associated to the other dimension in your data model?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 21:54:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-last-selected-field-value/m-p/478968#M178909</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2014-01-07T21:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to get last selected field value?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-last-selected-field-value/m-p/478969#M178910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Colin. First, I appreciate your help. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would like is something similar to:&lt;/P&gt;&lt;P&gt;&lt;A href="http://qvtips.wordpress.com/solution-why-do-we-need-so-many-listboxes/" title="http://qvtips.wordpress.com/solution-why-do-we-need-so-many-listboxes/"&gt;Solution: Why do we need so many listboxes | QlikView Tips and Tricks&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, his solution only works if you restrict Dim 1 to "Always One Selected Value". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason I would like to do this is because the user would like to create a large pivot table with columns consisting of the items he chooses (ie: "A", "B", "C", etc. from Dim 1) similar to Cognos. This large pivot table will take up the majority of the screen real estate, so I do not have space to display the dozen associated listboxes in case he would like to narrow down the items displayed in the pivot table (ie: Choosing "A", "B", and "C" as columns, but only wanting data relating to "A1").&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 22:52:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-last-selected-field-value/m-p/478969#M178910</guid>
      <dc:creator />
      <dc:date>2014-01-07T22:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Re: how to get last selected field value?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-last-selected-field-value/m-p/478970#M178911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kevin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is an example that has some options using Containers to allow you to select groups of list boxes.&lt;/P&gt;&lt;P&gt;This may give you another option to get the layout you require.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Colin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2014 23:13:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-last-selected-field-value/m-p/478970#M178911</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2014-01-08T23:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to get last selected field value?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-last-selected-field-value/m-p/478971#M178912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use subField function &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 09:23:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-last-selected-field-value/m-p/478971#M178912</guid>
      <dc:creator>mambi</dc:creator>
      <dc:date>2014-04-09T09:23:45Z</dc:date>
    </item>
  </channel>
</rss>

