<?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: Getting only the latest / highest selection from a selection in a list box in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Getting-only-the-latest-highest-selection-from-a-selection-in-a/m-p/1174162#M910049</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also very good. It seems that there are often multiple sollutions to a Qlikview problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot Ido Gridish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christoffer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Jun 2016 17:29:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-06-12T17:29:15Z</dc:date>
    <item>
      <title>Getting only the latest / highest selection from a selection in a list box</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-only-the-latest-highest-selection-from-a-selection-in-a/m-p/1174156#M910043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Qlik community&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the attached file, I am trying to create a dynamic label. I have tried to apply it to the left most label "Direct Product contribution". What I want it to show:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The label should show the text "Direct Product Contribution" and then also the month that the user has selected in the month list box above and "YTD". This works exactly the way I want it when the user only selects one single month. So, for instance, if the user chooses Mar, the label will read "Direct Product Contribution Mar YTD". However, when the user selects Jan, Feb and Mar, the label reads "Direct Product Contribution Jan , Feb, Mar YTD". Of course, I only want it to read &lt;SPAN style="font-size: 13.3333px;"&gt;"Direct Product Contribution Mar YTD".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the getfieldselections command. And I want it to only display the latest selection (in this case Mar). I thought about Rangemax(getfieldselections(Month) etc. but this is not yielding the expected result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your help is most appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christoffer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-only-the-latest-highest-selection-from-a-selection-in-a/m-p/1174156#M910043</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Getting only the latest / highest selection from a selection in a list box</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-only-the-latest-highest-selection-from-a-selection-in-a/m-p/1174157#M910044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='Direct Product Contribution' &amp;amp; &lt;STRONG&gt;FirstSortedValue(DISTINCT Month,-Month)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Jun 2016 11:46:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-only-the-latest-highest-selection-from-a-selection-in-a/m-p/1174157#M910044</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-12T11:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Getting only the latest / highest selection from a selection in a list box</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-only-the-latest-highest-selection-from-a-selection-in-a/m-p/1174158#M910045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;once again, you save the day :-). Can I up the question by one more item?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now that I am successfully showing the "latest" month, I would like to add the year as well, so that it reads "Product Contribution Mar 2015 YTD".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After I tried your suggestion, which worked like a charm, I tried adding on the year by doing this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;='Direct Product Contribution' &amp;amp; &lt;/SPAN&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;FirstSortedValue(DISTINCT Month,-Month)&amp;amp;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;FirstSortedValue(DISTINCT Year,-Year)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;and as that didn't work, I tried this:&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;='Direct Product Contribution' &amp;amp; &lt;/SPAN&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;FirstSortedValue(DISTINCT Month,-Month)&amp;amp;getfieldselection(Year).&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;But for some reason, the formula rejects the year...&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Do you know what to do in this case?&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Kind regards&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Christoffer&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Jun 2016 11:58:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-only-the-latest-highest-selection-from-a-selection-in-a/m-p/1174158#M910045</guid>
      <dc:creator />
      <dc:date>2016-06-12T11:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Getting only the latest / highest selection from a selection in a list box</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-only-the-latest-highest-selection-from-a-selection-in-a/m-p/1174159#M910046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Try :&lt;/P&gt;&lt;P&gt;=MaxString(Month)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Jun 2016 12:14:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-only-the-latest-highest-selection-from-a-selection-in-a/m-p/1174159#M910046</guid>
      <dc:creator>idogridish2</dc:creator>
      <dc:date>2016-06-12T12:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Getting only the latest / highest selection from a selection in a list box</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-only-the-latest-highest-selection-from-a-selection-in-a/m-p/1174160#M910047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;='Direct Product Contribution' &amp;amp; FirstSortedValue(DISTINCT Month,-Month)&amp;amp;FirstSortedValue(DISTINCT Year,-Year)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;worked for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;='Direct Product Contribution' &amp;amp; FirstSortedValue(DISTINCT Month,-Month)&amp;amp; Max(Year)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Jun 2016 14:37:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-only-the-latest-highest-selection-from-a-selection-in-a/m-p/1174160#M910047</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-12T14:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Getting only the latest / highest selection from a selection in a list box</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-only-the-latest-highest-selection-from-a-selection-in-a/m-p/1174161#M910048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you're right, now it worked for me as well. I probably misspelled something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christoffer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Jun 2016 17:27:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-only-the-latest-highest-selection-from-a-selection-in-a/m-p/1174161#M910048</guid>
      <dc:creator />
      <dc:date>2016-06-12T17:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Getting only the latest / highest selection from a selection in a list box</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-only-the-latest-highest-selection-from-a-selection-in-a/m-p/1174162#M910049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also very good. It seems that there are often multiple sollutions to a Qlikview problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot Ido Gridish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christoffer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Jun 2016 17:29:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-only-the-latest-highest-selection-from-a-selection-in-a/m-p/1174162#M910049</guid>
      <dc:creator />
      <dc:date>2016-06-12T17:29:15Z</dc:date>
    </item>
  </channel>
</rss>

