<?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: Text Object - display field based on current selections in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Text-Object-display-field-based-on-current-selections/m-p/689491#M541005</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=subfield(concat(distinct Address, '|'), '|', 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will concatenate the Address according to your selections of Building (so only the addresses of building 1 and 2 should be there), then subfield will return the first address in the list. Also,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=subfield(concat(distinct Address, '|'), '|', 2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should get the second address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Jul 2014 17:44:01 GMT</pubDate>
    <dc:creator>jerem1234</dc:creator>
    <dc:date>2014-07-16T17:44:01Z</dc:date>
    <item>
      <title>Text Object - display field based on current selections</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Object-display-field-based-on-current-selections/m-p/689486#M541000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to have a text object display information based on what the current selections are? For example, say the user has selected Bldg 1 and Bldg 2. Can the text object then display the value from the Address field for Bldg 1 in text object 1 and the address field for Bldg 2 in Text Object 2? Then if the selections change, the values in the text objects change along with them. Thanks in advance for any assistance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 15:46:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Object-display-field-based-on-current-selections/m-p/689486#M541000</guid>
      <dc:creator>brucejensen</dc:creator>
      <dc:date>2014-07-16T15:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: Text Object - display field based on current selections</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Object-display-field-based-on-current-selections/m-p/689487#M541001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jensen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a text object, you can use a function =GetCurrentSelections(FieldName). When selections are made to that specific field, the text will be displayed in the text object. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 16:31:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Object-display-field-based-on-current-selections/m-p/689487#M541001</guid>
      <dc:creator />
      <dc:date>2014-07-16T16:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Text Object - display field based on current selections</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Object-display-field-based-on-current-selections/m-p/689488#M541002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;from qlikview online help&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor281"&gt;&lt;/A&gt;&lt;A name="getfieldselections"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;&lt;STRONG&gt;getfieldselections&lt;/STRONG&gt; (&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt; FieldName [, ValueSep [, MaxValues]]&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Returns a string with the current selections in a field. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;ValueSep&lt;/SPAN&gt; is the separator to be put between field values. The default is ', '. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;Maxvalues&lt;/SPAN&gt; is the maximum number of field values to be individually listed. When a larger number of values is selected the format 'x of y values' will be used instead. The default is 6. &lt;/P&gt;&lt;P class="example"&gt;Examples&lt;/P&gt;&lt;P class="Code"&gt;getfieldselections ( Year ) &lt;/P&gt;&lt;P class="Code"&gt;getfieldselections ( Year, '; ' ) &lt;/P&gt;&lt;P class="Code"&gt;getfieldselections ( Year, '; ' , 10 ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor282"&gt;&lt;/A&gt;&lt;A name="getcurrentselections"&gt;&lt;/A&gt;&lt;STRONG&gt;getcurrentselections&lt;/STRONG&gt; (&lt;SPAN class="Italic"&gt;[RecordSep [, TagSep [,ValueSep [, MaxValues]]]]&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Returns a string with the current selections in the document. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;RecordSep&lt;/SPAN&gt; is the separator to be put between field records. The default is &amp;lt;CR&amp;gt;&amp;lt;LF&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;TagSep&lt;/SPAN&gt; is the separator to be put between the field name tag and the field values. The default is ': '. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;ValueSep&lt;/SPAN&gt; is the separator to be put between field values. The default is ', '. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;Maxvalues&lt;/SPAN&gt; is the maximum number of field values to be individually listed. When a larger number of values is selected the format 'x of y values' will be used instead. The default is 6. &lt;/P&gt;&lt;P class="example"&gt;Examples&lt;/P&gt;&lt;P class="Code"&gt;getcurrentselections ( ) &lt;/P&gt;&lt;P class="Code"&gt;getcurrentselections ( chr(13)&amp;amp;chr(10) , ' = ' ) &lt;/P&gt;&lt;P class="Code"&gt;getcurrentselections ( chr(13)&amp;amp;chr(10) , ' : ' , ' ; ' ) &lt;/P&gt;&lt;P class="Code"&gt;getcurrentselections ( chr(13)&amp;amp;chr(10) , ' : ' , ' ; ' , 10 )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 16:34:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Object-display-field-based-on-current-selections/m-p/689488#M541002</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-07-16T16:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Text Object - display field based on current selections</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Object-display-field-based-on-current-selections/m-p/689489#M541003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately, that doesn't seem to work in this case (returns a "-"). I think it is because the only field selected is the building name not the address. What I'm looking for is if one field is selected and has two values selected, the corresponding text object displays it's field value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current selections: Building Name: Bldg One, Bldg Two&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Text object 1: Address for Bldg One&lt;/P&gt;&lt;P&gt;Text Object 2: Address for Bldg Two&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 17:33:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Object-display-field-based-on-current-selections/m-p/689489#M541003</guid>
      <dc:creator>brucejensen</dc:creator>
      <dc:date>2014-07-16T17:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Text Object - display field based on current selections</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Object-display-field-based-on-current-selections/m-p/689490#M541004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately it doesn't seem to work, returns a "-". Could it be because the only selections are in the Building name field but what I want to display is in the address field which wasn't explicitely selected?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 17:35:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Object-display-field-based-on-current-selections/m-p/689490#M541004</guid>
      <dc:creator>brucejensen</dc:creator>
      <dc:date>2014-07-16T17:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Text Object - display field based on current selections</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Object-display-field-based-on-current-selections/m-p/689491#M541005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=subfield(concat(distinct Address, '|'), '|', 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will concatenate the Address according to your selections of Building (so only the addresses of building 1 and 2 should be there), then subfield will return the first address in the list. Also,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=subfield(concat(distinct Address, '|'), '|', 2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should get the second address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 17:44:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Object-display-field-based-on-current-selections/m-p/689491#M541005</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-07-16T17:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Text Object - display field based on current selections</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Object-display-field-based-on-current-selections/m-p/689492#M541006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks I'm going to try that but one question. What is the 'I' in the expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 17:49:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Object-display-field-based-on-current-selections/m-p/689492#M541006</guid>
      <dc:creator>brucejensen</dc:creator>
      <dc:date>2014-07-16T17:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Text Object - display field based on current selections</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Object-display-field-based-on-current-selections/m-p/689493#M541007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually you might want to use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=only({&amp;lt;Building={"$(=subfield(concat(Building, '|'), '|', 1))"}&amp;gt;}Address)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=only({&amp;lt;Building={"$(=subfield(concat(Building, '|'), '|', 2))"}&amp;gt;}Address)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way concat sorts might cause a problem, it will sort on address, and not necessarily the order of buildings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 18:00:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Object-display-field-based-on-current-selections/m-p/689493#M541007</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-07-16T18:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Text Object - display field based on current selections</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Object-display-field-based-on-current-selections/m-p/689494#M541008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Once again you've come through with an answer for me! Works great! Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 18:23:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Object-display-field-based-on-current-selections/m-p/689494#M541008</guid>
      <dc:creator>brucejensen</dc:creator>
      <dc:date>2014-07-16T18:23:55Z</dc:date>
    </item>
  </channel>
</rss>

