<?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: Get a value based on a selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-a-value-based-on-a-selection/m-p/712604#M256577</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But that only gives me the number of selected fields. What I want to do is get the count of EMPLID where the semester is equal to the selected one from the list box.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 20 Jul 2014 07:34:40 GMT</pubDate>
    <dc:creator>bashar_f</dc:creator>
    <dc:date>2014-07-20T07:34:40Z</dc:date>
    <item>
      <title>Get a value based on a selection</title>
      <link>https://community.qlik.com/t5/QlikView/Get-a-value-based-on-a-selection/m-p/712602#M256575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a text object that displays a value from a variable, but I only want this value to show if a selection is made in list box, otherwise I want it to show 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, I have a list box called semester with 2 values, 1301, 1401. the text object is called "Selected Semester" and it should show the result of the following expression only when a value is selected and for that specific value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(EMPLID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What should I write in the variable definition?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Jul 2014 07:29:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-a-value-based-on-a-selection/m-p/712602#M256575</guid>
      <dc:creator>bashar_f</dc:creator>
      <dc:date>2014-07-20T07:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Get a value based on a selection</title>
      <link>https://community.qlik.com/t5/QlikView/Get-a-value-based-on-a-selection/m-p/712603#M256576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the function GetSelectedCount(fieldName)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Jul 2014 07:30:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-a-value-based-on-a-selection/m-p/712603#M256576</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2014-07-20T07:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Get a value based on a selection</title>
      <link>https://community.qlik.com/t5/QlikView/Get-a-value-based-on-a-selection/m-p/712604#M256577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But that only gives me the number of selected fields. What I want to do is get the count of EMPLID where the semester is equal to the selected one from the list box.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Jul 2014 07:34:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-a-value-based-on-a-selection/m-p/712604#M256577</guid>
      <dc:creator>bashar_f</dc:creator>
      <dc:date>2014-07-20T07:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Get a value based on a selection</title>
      <link>https://community.qlik.com/t5/QlikView/Get-a-value-based-on-a-selection/m-p/712605#M256578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;then simply Count(EMPLID)&lt;/P&gt;&lt;P&gt;or in the definition of your variable write the following&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;your_field={desired_value}&amp;gt;}EMPLID)&amp;gt;0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if this is not the case please elaborate more&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Jul 2014 07:38:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-a-value-based-on-a-selection/m-p/712605#M256578</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2014-07-20T07:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Get a value based on a selection</title>
      <link>https://community.qlik.com/t5/QlikView/Get-a-value-based-on-a-selection/m-p/712606#M256579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The code you wrote looks like what I want, but if only i can replace the "desired_value" with the selected value of the listbox, like if I selected 1401 from the listbox, I want 1401 to fill in the place of the desired value. The main thing here is that I want it to show 0 when nothing is selected and only act when something is selected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Jul 2014 07:43:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-a-value-based-on-a-selection/m-p/712606#M256579</guid>
      <dc:creator>bashar_f</dc:creator>
      <dc:date>2014-07-20T07:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Get a value based on a selection</title>
      <link>https://community.qlik.com/t5/QlikView/Get-a-value-based-on-a-selection/m-p/712607#M256580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;then replace desired_value with Concat(distinct field_name,',')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Jul 2014 07:55:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-a-value-based-on-a-selection/m-p/712607#M256580</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2014-07-20T07:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Get a value based on a selection</title>
      <link>https://community.qlik.com/t5/QlikView/Get-a-value-based-on-a-selection/m-p/712608#M256581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use the following to check if a desired value is selected:&lt;/P&gt;&lt;P&gt;if(index(concat(distinct your_field,','),'your_desired_value')&amp;gt;0 ,1,0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Jul 2014 07:57:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-a-value-based-on-a-selection/m-p/712608#M256581</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2014-07-20T07:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Get a value based on a selection</title>
      <link>https://community.qlik.com/t5/QlikView/Get-a-value-based-on-a-selection/m-p/712609#M256582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;='Selected Semester : '&amp;amp;IF(GetSelectedCount(semester)&amp;gt;0,Count(EMPID),0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Jul 2014 07:58:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-a-value-based-on-a-selection/m-p/712609#M256582</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-07-20T07:58:05Z</dc:date>
    </item>
  </channel>
</rss>

