<?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: getfieldselections with multiple value (using in set analysis) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/getfieldselections-with-multiple-value-using-in-set-analysis/m-p/758059#M269777</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;I miss a value at the isnull statement. Isnull always returns a value, either 0 or -1. So I don't understand why it is such in your expression. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Could you try what happens if you just write STAGENAME as the second option of your If statement?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;vSelStage: &lt;SPAN style="color: #0000ff;"&gt;=if&lt;/SPAN&gt;(count(distinct &lt;SPAN style="color: #0000ff;"&gt;GetFieldSelections&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;STAGENAME&lt;/SPAN&gt;)=1,'Stage6',&lt;SPAN style="color: #800000;"&gt;STAGENAME&lt;/SPAN&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"&gt;count(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"&gt;{&amp;lt;&lt;/SPAN&gt;stagename={"$(vSelStage)"}&amp;gt;}opportunity_id)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"&gt;Let me know whether it worked or not!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"&gt;T&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Dec 2014 09:03:18 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-12-18T09:03:18Z</dc:date>
    <item>
      <title>getfieldselections with multiple value (using in set analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/getfieldselections-with-multiple-value-using-in-set-analysis/m-p/758057#M269775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;Hi All,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;I need some help on how to use the getfieldselections with multiple value in set analysis use. I have created a list box of different stages: stage1, stage2, stage3...stage5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;I need to create another chart to show how many opportunities we get from each of the stage. I want to make this more dynamically and flexible. So if none of the stages from the list box are selected, I want to show the quantatity of the opportunity we have for stage6. Otherwise,&amp;nbsp; show me the quantatity of whichever stages are selected. It works fine if we select a single stage..But I want to know how to make it work so it can show multiple stages opportunity count. Thanks a lot for all the help in advance. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;vSelStage: &lt;SPAN style="color: #0000ff;"&gt;=if&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;isnull&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;GetFieldSelections&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;STAGENAME&lt;/SPAN&gt;)),'Stage6',&lt;SPAN style="color: #0000ff;"&gt;GetFieldSelections&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;STAGENAME&lt;/SPAN&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;count(stagename={&amp;lt;"$(vSelStage)"&amp;gt;}opportunity_id&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 23:02:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getfieldselections-with-multiple-value-using-in-set-analysis/m-p/758057#M269775</guid>
      <dc:creator />
      <dc:date>2014-12-17T23:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: getfieldselections with multiple value (using in set analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/getfieldselections-with-multiple-value-using-in-set-analysis/m-p/758058#M269776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;=if&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 16px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;isnull&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 16px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;GetFieldSelections&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 16px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;STAGENAME&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"&gt;)),'Stage6',&lt;/SPAN&gt;&lt;SPAN style="font-size: 16px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Concat&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"&gt;(Chr(39) &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 16px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;STAGENAME &amp;amp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"&gt;Chr(39),','&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 16px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;count(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"&gt;{&amp;lt;&lt;/SPAN&gt;stagename={"$(vSelStage)"}&amp;gt;}opportunity_id)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 16px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 16px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 16px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 16px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="font-size: 16px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;=if&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 16px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;isnull&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 16px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;GetFieldSelections&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 16px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;STAGENAME&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"&gt;)),&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"&gt;count(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"&gt;{&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"&gt;stagename={&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"&gt;'Stage6'&lt;/SPAN&gt;}&amp;gt;}opportunity_id)&lt;/SPAN&gt;,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"&gt;count(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"&gt;opportunity_id)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 07:10:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getfieldselections-with-multiple-value-using-in-set-analysis/m-p/758058#M269776</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-12-18T07:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: getfieldselections with multiple value (using in set analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/getfieldselections-with-multiple-value-using-in-set-analysis/m-p/758059#M269777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;I miss a value at the isnull statement. Isnull always returns a value, either 0 or -1. So I don't understand why it is such in your expression. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Could you try what happens if you just write STAGENAME as the second option of your If statement?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;vSelStage: &lt;SPAN style="color: #0000ff;"&gt;=if&lt;/SPAN&gt;(count(distinct &lt;SPAN style="color: #0000ff;"&gt;GetFieldSelections&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;STAGENAME&lt;/SPAN&gt;)=1,'Stage6',&lt;SPAN style="color: #800000;"&gt;STAGENAME&lt;/SPAN&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"&gt;count(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"&gt;{&amp;lt;&lt;/SPAN&gt;stagename={"$(vSelStage)"}&amp;gt;}opportunity_id)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"&gt;Let me know whether it worked or not!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"&gt;T&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 09:03:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getfieldselections-with-multiple-value-using-in-set-analysis/m-p/758059#M269777</guid>
      <dc:creator />
      <dc:date>2014-12-18T09:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: getfieldselections with multiple value (using in set analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/getfieldselections-with-multiple-value-using-in-set-analysis/m-p/758060#M269778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could create these expression directly without a variable and the check if any value is selected is better with getselectedcount(). Try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt; STAGENAME {$(=if(GetSelectedCount(STAGENAME) = 0,&amp;nbsp; '*', &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GetFieldSelections(STAGENAME, ', ', 12)))}&amp;gt;} opportunity_id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And be carefully with fieldnames: STAGENAME and stagename isn't the same and wouldn't be match.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 12:39:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getfieldselections-with-multiple-value-using-in-set-analysis/m-p/758060#M269778</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-12-18T12:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: getfieldselections with multiple value (using in set analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/getfieldselections-with-multiple-value-using-in-set-analysis/m-p/758061#M269779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anbu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response. I got rid of using getfieldselection and used the concat function instead. And it worked. See below. Thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;J&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; line-height: 115%; font-family: 'Courier New'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; line-height: 115%; font-family: 'Courier New'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;STAGENAME&lt;/SPAN&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="mso-bidi-language: AR-SA; mso-fareast-language: EN-US; line-height: 115%; color: gray; font-size: 9pt; mso-ansi-language: EN-US; mso-fareast-theme-font: minor-latin; font-family: 'Courier New'; mso-fareast-font-family: Calibri;"&gt;$(=concat(DISTINCT chr(39) &amp;amp; STAGENAME &amp;amp; chr(39),','))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;}&lt;BR /&gt; &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: maroon; line-height: 115%; font-family: 'Courier New'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;OPPORTUNITY_ID &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 23:10:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getfieldselections-with-multiple-value-using-in-set-analysis/m-p/758061#M269779</guid>
      <dc:creator />
      <dc:date>2014-12-18T23:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: getfieldselections with multiple value (using in set analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/getfieldselections-with-multiple-value-using-in-set-analysis/m-p/758062#M269780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tibor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried your expression: &lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;=if&lt;/SPAN&gt;(count(distinct &lt;SPAN style="color: #0000ff;"&gt;GetFieldSelections&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;STAGENAME&lt;/SPAN&gt;)=1,'Stage6',&lt;SPAN style="color: #800000;"&gt;STAGENAME&lt;/SPAN&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;it would always give me 'Stage6' no mater which stage I click in the listbox. I think that's because when you click the STAGENAME listbox, count(distinct getfieldselections(stagename) would always give your the answer '1'..So this did not work for my case. ifnull() seem works in the if function. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;I tried the expression below and it worked for me. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; line-height: 115%; font-family: 'Courier New'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; line-height: 115%; font-family: 'Courier New'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;STAGENAME&lt;/SPAN&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; line-height: 115%; font-family: 'Courier New'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;$(=concat(DISTINCT chr(39) &amp;amp; STAGENAME &amp;amp; chr(39),','))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;}&lt;BR /&gt; &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: maroon; line-height: 115%; font-family: 'Courier New'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;OPPORTUNITY_ID &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 23:27:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getfieldselections-with-multiple-value-using-in-set-analysis/m-p/758062#M269780</guid>
      <dc:creator />
      <dc:date>2014-12-18T23:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: getfieldselections with multiple value (using in set analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/getfieldselections-with-multiple-value-using-in-set-analysis/m-p/758063#M269781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Smart way to solve this. But I don't think getfieldselection works well for multiple values in set analysis. Seems like concat is a good way to deal with this and it solved my problem. See below. Thank for your help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; line-height: 115%; font-family: 'Courier New'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; line-height: 115%; font-family: 'Courier New'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;STAGENAME&lt;/SPAN&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; line-height: 115%; font-family: 'Courier New'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;$(=concat(DISTINCT chr(39) &amp;amp; STAGENAME &amp;amp; chr(39),','))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;}&lt;BR /&gt; &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: maroon; line-height: 115%; font-family: 'Courier New'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;OPPORTUNITY_ID &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 23:31:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getfieldselections-with-multiple-value-using-in-set-analysis/m-p/758063#M269781</guid>
      <dc:creator />
      <dc:date>2014-12-18T23:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: getfieldselections with multiple value (using in set analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/getfieldselections-with-multiple-value-using-in-set-analysis/m-p/758064#M269782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please close the post, if your queries are answered&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 02:39:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getfieldselections-with-multiple-value-using-in-set-analysis/m-p/758064#M269782</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-12-19T02:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: getfieldselections with multiple value (using in set analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/getfieldselections-with-multiple-value-using-in-set-analysis/m-p/758065#M269783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For me it worked in this way with multiple values well and you need not neccessary handle the values-format if it's a string or numeric. I'm not sure but I think in larger data-sets getfieldselections() would be better perform as a aggregation-function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 07:40:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getfieldselections-with-multiple-value-using-in-set-analysis/m-p/758065#M269783</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-12-19T07:40:44Z</dc:date>
    </item>
  </channel>
</rss>

