<?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: Concatenating a string and a variable to use a field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Concatenating-a-string-and-a-variable-to-use-a-field/m-p/631681#M231807</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;='Data_Status_April_' &amp;amp; '$(varData_Status_YEAR)'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 May 2014 15:33:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-05-13T15:33:55Z</dc:date>
    <item>
      <title>Concatenating a string and a variable to use a field</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenating-a-string-and-a-variable-to-use-a-field/m-p/631679#M231805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a variable defined as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;varData_Status_YEAR &lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;amp; '_' &amp;amp; Right((&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; + 1),2); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I was then hoping to use the value of this variable with a string to select a field to use in a textbox.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;e.g. here are the fields that are brought into the Qlikview document whose values I am looking to display:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Data_Status_April_2012_13&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Data_Status_April_2013_14&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Data_Status_April_2014_15&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;If I want the value of one of these to be displayed in a text box how do I go about this using the variable &lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;varData_Status_YEAR&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;?&amp;nbsp; I&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;s it possible?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I've tried the following to no avail:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;('Data_Status_April_' &amp;amp; $(varData_Status_YEAR)) &lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;'Data_Status_April_' &amp;amp; $(varData_Status_YEAR)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;...and countless other iterations, but no joy.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;If anybody has any suggestions that will be much appreciated.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 15:19:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenating-a-string-and-a-variable-to-use-a-field/m-p/631679#M231805</guid>
      <dc:creator>paul_hallwood</dc:creator>
      <dc:date>2014-05-13T15:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenating a string and a variable to use a field</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenating-a-string-and-a-variable-to-use-a-field/m-p/631680#M231806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try in the text object to write this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= CONCAT ( 'Data_Status_April_'&amp;amp;$(varData_Status_YEAR),' ')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know it help you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 15:27:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenating-a-string-and-a-variable-to-use-a-field/m-p/631680#M231806</guid>
      <dc:creator />
      <dc:date>2014-05-13T15:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenating a string and a variable to use a field</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenating-a-string-and-a-variable-to-use-a-field/m-p/631681#M231807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;='Data_Status_April_' &amp;amp; '$(varData_Status_YEAR)'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 15:33:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenating-a-string-and-a-variable-to-use-a-field/m-p/631681#M231807</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-13T15:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenating a string and a variable to use a field</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenating-a-string-and-a-variable-to-use-a-field/m-p/631682#M231808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is that you have many records with YEAR value so in a text box which one should be displayed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The concat is a solution but you will see all records in your text box, while I think you need only one value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So write 'Data_Status_April_' &amp;amp; $(varData_Status_YEAR) but select one year ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 15:36:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenating-a-string-and-a-variable-to-use-a-field/m-p/631682#M231808</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-05-13T15:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenating a string and a variable to use a field</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenating-a-string-and-a-variable-to-use-a-field/m-p/631683#M231809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Matteo, but unfortunately this hasn't worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 15:39:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenating-a-string-and-a-variable-to-use-a-field/m-p/631683#M231809</guid>
      <dc:creator>paul_hallwood</dc:creator>
      <dc:date>2014-05-13T15:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenating a string and a variable to use a field</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenating-a-string-and-a-variable-to-use-a-field/m-p/631684#M231810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately this hasn't worked either Rudolf.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 15:41:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenating-a-string-and-a-variable-to-use-a-field/m-p/631684#M231810</guid>
      <dc:creator>paul_hallwood</dc:creator>
      <dc:date>2014-05-13T15:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenating a string and a variable to use a field</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenating-a-string-and-a-variable-to-use-a-field/m-p/631685#M231811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you are quite correct Alessandro, there will be many years to choose from, but I do just choose the one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the suggestion, but it's still causing me an issue!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other suggestions welcome...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 15:45:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenating-a-string-and-a-variable-to-use-a-field/m-p/631685#M231811</guid>
      <dc:creator>paul_hallwood</dc:creator>
      <dc:date>2014-05-13T15:45:49Z</dc:date>
    </item>
  </channel>
</rss>

