<?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: Expressions in text box query in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expressions-in-text-box-query/m-p/962289#M977532</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are instances where a Patient/Client might be registered with more than 1 GP Practice in a year, so I need to be able to see all options, but only when NHS Number or Client Number is selected....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Aug 2015 10:55:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-08-20T10:55:50Z</dc:date>
    <item>
      <title>Expressions in text box query</title>
      <link>https://community.qlik.com/t5/QlikView/Expressions-in-text-box-query/m-p/962284#M977527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Hi All&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I am using a text box to display a GP Code by using the following script:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;='GP Code: ' &amp;amp; &lt;SPAN style="color: #0000ff;"&gt;concat&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;DISTINCT&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[Practice Code]&lt;/SPAN&gt;,', ') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;The problem is that this returns all of the possible data entries. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;What I'd like it to do is for the text box to be blank unless "Client Number" or "NHS Number" is selected.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I have tried to combine the above with "getcurrentfield" (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;getselectedcount&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[NHS Number]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&amp;gt;0 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;or&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;getselectedcount&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[Client Number]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&amp;gt;0 ) but this doesn't work&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I'd appreciate any advice on this please&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thank you in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Claire&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 10:34:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expressions-in-text-box-query/m-p/962284#M977527</guid>
      <dc:creator />
      <dc:date>2015-08-20T10:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions in text box query</title>
      <link>https://community.qlik.com/t5/QlikView/Expressions-in-text-box-query/m-p/962285#M977528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is strange it doesn't work, could you send an example doc?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 10:36:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expressions-in-text-box-query/m-p/962285#M977528</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2015-08-20T10:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions in text box query</title>
      <link>https://community.qlik.com/t5/QlikView/Expressions-in-text-box-query/m-p/962286#M977529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;did yu try lik this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 10:42:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expressions-in-text-box-query/m-p/962286#M977529</guid>
      <dc:creator>gautik92</dc:creator>
      <dc:date>2015-08-20T10:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions in text box query</title>
      <link>https://community.qlik.com/t5/QlikView/Expressions-in-text-box-query/m-p/962287#M977530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try it as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 10pt;"&gt;getselectedcount&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 10pt;"&gt;[NHS Number]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;)&amp;gt;0,&lt;BR /&gt;'Practice: ' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 10pt;"&gt;concat&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 10pt;"&gt;Distinct&lt;/SPAN&gt; &lt;SPAN style="color: maroon; font-size: 10pt;"&gt;[GP Practice]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;,', ',),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: blue; font-size: 9pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: blue; font-size: 9pt;"&gt;getselectedcount&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: maroon; font-size: 9pt;"&gt;[Client Number]&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt; )&amp;gt;0,&lt;BR /&gt;'Practice: ' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: blue; font-size: 9pt;"&gt;concat&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: blue; font-size: 9pt;"&gt;Distinct&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Arial','sans-serif'; color: maroon; font-size: 9pt;"&gt;[GP Practice]&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;,', ',),&lt;BR /&gt;'Please select NHS or Client Number'))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;...which I&lt;EM&gt; think&lt;/EM&gt; should work.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 10:48:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expressions-in-text-box-query/m-p/962287#M977530</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-20T10:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions in text box query</title>
      <link>https://community.qlik.com/t5/QlikView/Expressions-in-text-box-query/m-p/962288#M977531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;actually only &lt;SPAN style="font-size: 10pt;"&gt;='GP Code: ' &amp;amp; &lt;SPAN style="color: #0000ff;"&gt;concat&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;DISTINCT&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[Practice Code]&lt;/SPAN&gt;,', ') &lt;/SPAN&gt; should work&lt;/P&gt;&lt;P&gt;you select 1 GP Code, only 1 code should be shown in TextBox&lt;/P&gt;&lt;P&gt;so it might be some other Settings?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example from QV WhatsNewin QV11:&lt;SPAN style="font-size: 8pt;"&gt;='test ' &amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;concat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Region&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,', ')&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/96547_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 10:53:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expressions-in-text-box-query/m-p/962288#M977531</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-20T10:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions in text box query</title>
      <link>https://community.qlik.com/t5/QlikView/Expressions-in-text-box-query/m-p/962289#M977532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are instances where a Patient/Client might be registered with more than 1 GP Practice in a year, so I need to be able to see all options, but only when NHS Number or Client Number is selected....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 10:55:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expressions-in-text-box-query/m-p/962289#M977532</guid>
      <dc:creator />
      <dc:date>2015-08-20T10:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions in text box query</title>
      <link>https://community.qlik.com/t5/QlikView/Expressions-in-text-box-query/m-p/962290#M977533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works perfectly, thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 10:58:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expressions-in-text-box-query/m-p/962290#M977533</guid>
      <dc:creator />
      <dc:date>2015-08-20T10:58:37Z</dc:date>
    </item>
  </channel>
</rss>

