<?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 Show Selection Value in Label in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-Show-Selection-Value-in-Label/m-p/1627445#M446202</link>
    <description>&lt;P&gt;If(getSelectedCount(&lt;SPAN&gt;product_name)=1,&amp;nbsp;product_name, 'ALL')&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Sep 2019 13:04:27 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2019-09-24T13:04:27Z</dc:date>
    <item>
      <title>How to Show Selection Value in Label</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Show-Selection-Value-in-Label/m-p/1627442#M446201</link>
      <description>&lt;P&gt;Hi, I am looking to find out how I can display a value in a Label within a measure Measure based on a selection from a SimpleFieldSelect Extension.&lt;/P&gt;&lt;P&gt;I currently have the following 4 options on my page:&lt;/P&gt;&lt;P&gt;A | B | C | D&lt;/P&gt;&lt;P&gt;at present I have the following as part of my label:&lt;/P&gt;&lt;P&gt;=FieldValue('product_name', '1')&lt;BR /&gt;&lt;BR /&gt;which I know will always show the first value no matter what I select. What I would like to do is to make this label dynamic so that this displays a single value of whatever is selected i.e. A, B, C or D and if more than 1 value is selected than I would like this value to change to ALL.&lt;BR /&gt;&lt;BR /&gt;I am not sure if this is possible to do within the label field or whether I need to create a variable and then call it, but would love some advice as to what the best practice is to achieve this.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 12:59:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Show-Selection-Value-in-Label/m-p/1627442#M446201</guid>
      <dc:creator>aftabn10</dc:creator>
      <dc:date>2019-09-24T12:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to Show Selection Value in Label</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Show-Selection-Value-in-Label/m-p/1627445#M446202</link>
      <description>&lt;P&gt;If(getSelectedCount(&lt;SPAN&gt;product_name)=1,&amp;nbsp;product_name, 'ALL')&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 13:04:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Show-Selection-Value-in-Label/m-p/1627445#M446202</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2019-09-24T13:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to Show Selection Value in Label</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Show-Selection-Value-in-Label/m-p/1627450#M446203</link>
      <description>Wow that was quick lol. Will give that a go. Thank you.</description>
      <pubDate>Tue, 24 Sep 2019 13:08:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Show-Selection-Value-in-Label/m-p/1627450#M446203</guid>
      <dc:creator>aftabn10</dc:creator>
      <dc:date>2019-09-24T13:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to Show Selection Value in Label</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Show-Selection-Value-in-Label/m-p/1627451#M446204</link>
      <description>&lt;P&gt;Brilliant, thank you so much, that worked!&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 13:10:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Show-Selection-Value-in-Label/m-p/1627451#M446204</guid>
      <dc:creator>aftabn10</dc:creator>
      <dc:date>2019-09-24T13:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to Show Selection Value in Label</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Show-Selection-Value-in-Label/m-p/2030739#M1222401</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22949"&gt;@tresB&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;What would this command&amp;nbsp; turn into if we want to show 2 selected values?&lt;BR /&gt;&lt;BR /&gt;For example I've put a filter pane for Year select in the dashboard and a KPI showing Values based on the Years selected. With the command given above, if I select 2023, the label shows "2023". But if I select 2022 and 2023 in the filter pane, I would like to see "2022-2023" in the label section. Is this possible with a nested "if" in the given command?&lt;/P&gt;
&lt;P&gt;I've tried this :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If(getSelectedCount([Έτος])=1,'Stock Value '&amp;amp; Έτος,&lt;BR /&gt;If(getSelectedCount([Έτος])=2,'Stock Value '&amp;amp; Έτος,&lt;BR /&gt;'ALL'))&lt;/P&gt;
&lt;P&gt;but it's obviously wrong.&lt;/P&gt;
&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 09:31:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Show-Selection-Value-in-Label/m-p/2030739#M1222401</guid>
      <dc:creator>primopapp00</dc:creator>
      <dc:date>2023-01-27T09:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to Show Selection Value in Label</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Show-Selection-Value-in-Label/m-p/2030748#M1222402</link>
      <description>&lt;P&gt;Finally, I found something that seems to work :&lt;/P&gt;
&lt;P&gt;=If(getSelectedCount([Έτος])=1,'Stock Value ' &amp;amp; GetFieldSelections ([Έτος],','),&lt;BR /&gt;If(getSelectedCount([Έτος])=2,'Stock Value ' &amp;amp; GetFieldSelections ([Έτος],','),&lt;BR /&gt;If(getSelectedCount([Έτος])=3,'Stock Value ' &amp;amp; GetFieldSelections ([Έτος],','),&lt;BR /&gt;If(getSelectedCount([Έτος])=4,'Stock Value ' &amp;amp; GetFieldSelections ([Έτος],','),&lt;BR /&gt;If(getSelectedCount([Έτος])=5,'Stock Value ' &amp;amp; GetFieldSelections ([Έτος],','),&lt;BR /&gt;If(getSelectedCount([Έτος])=6,'Stock Value ' &amp;amp; GetFieldSelections ([Έτος],','),&lt;BR /&gt;'ALL'))))))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Where Έτος means year, and i did 6 ifs because max value of years are 7 (2017,2018,2019,2020,2021,2022,2023)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you can suggest a shorter query, it would be much appreciated !&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 09:43:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Show-Selection-Value-in-Label/m-p/2030748#M1222402</guid>
      <dc:creator>primopapp00</dc:creator>
      <dc:date>2023-01-27T09:43:38Z</dc:date>
    </item>
  </channel>
</rss>

