<?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: Assigning current selection to a filed in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Assigning-current-selection-to-a-filed/m-p/936415#M323240</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Swuehl, this solved my issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Oct 2015 05:45:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-10-13T05:45:15Z</dc:date>
    <item>
      <title>Assigning current selection to a filed</title>
      <link>https://community.qlik.com/t5/QlikView/Assigning-current-selection-to-a-filed/m-p/936413#M323238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i am capturing the current selection in a variable&lt;/P&gt;&lt;P&gt;like below to get the current Selected SURGEON name.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vSurgeon=GetFieldSelections(SURGEON)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using this variable in&amp;nbsp; another expression to get the count of cases in which the selected &lt;STRONG style="font-size: 13.3333px;"&gt;SURGEON &lt;/STRONG&gt;was an &lt;STRONG&gt;ASSISTANT_SURGEON&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;='Case Count (Assist Surg): ' &amp;amp; (num(count({&amp;lt;ASSI_SURGEON ={'$(=vSurgeon)'}&amp;gt;}distinct CASEID)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but this is giving me the result as 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: A SURGEON cant be a an ASSISTANT SURGEON at same time. Could this error since when I select the SURGEON Name it will&amp;nbsp; grayed out form the List of ASSISTANT SURGEON?&lt;/P&gt;&lt;P&gt;Any way on hard coring the the surgeon name in the expression I am getting the correct result.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 10pt;"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff; font-family: Arial; font-size: 10pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 10pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-family: Arial; font-size: 10pt;"&gt;ASSI_SURGEON&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'Segoe UI'; font-size: 10pt;"&gt; = {'ROBERT S'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Arial; font-size: 10pt;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman';"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-family: Arial; font-size: 10pt;"&gt;CASEID&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 10pt;"&gt;&lt;STRONG&gt;).&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 10pt;"&gt;Does someone have any idea on this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 10pt;"&gt;Thanks &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 10pt;"&gt;Saritha Xavier&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 09:53:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assigning-current-selection-to-a-filed/m-p/936413#M323238</guid>
      <dc:creator />
      <dc:date>2015-10-08T09:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning current selection to a filed</title>
      <link>https://community.qlik.com/t5/QlikView/Assigning-current-selection-to-a-filed/m-p/936414#M323239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see two issues here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your variable does not enclose all values in single quotes, per value. So if you select more than one SURGEON, you element list will not be formatted correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If selections in SURGEON and ASSI_SURGEON are incompatible, you need to clear selection in SURGEON when assigining a set to ASSI_SURGEON.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would try it like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial; color: #000000;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;=&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Arial; color: #0000ff;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Arial; color: #000000;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Arial; color: #800000;"&gt;ASSI_SURGEON&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Segoe UI'; color: #000000;"&gt; = SURGEON, SURGEON =&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Arial; color: #0000ff;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'Times New Roman';"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Arial; color: #800000;"&gt;CASEID&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial; color: #000000;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;).&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 10:08:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assigning-current-selection-to-a-filed/m-p/936414#M323239</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-10-08T10:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning current selection to a filed</title>
      <link>https://community.qlik.com/t5/QlikView/Assigning-current-selection-to-a-filed/m-p/936415#M323240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Swuehl, this solved my issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2015 05:45:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assigning-current-selection-to-a-filed/m-p/936415#M323240</guid>
      <dc:creator />
      <dc:date>2015-10-13T05:45:15Z</dc:date>
    </item>
  </channel>
</rss>

