<?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: Lookup Function in a Text Object in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Lookup-Function-in-a-Text-Object/m-p/1509322#M436555</link>
    <description>&lt;P&gt;Hi thank-you!&lt;/P&gt;&lt;P&gt;I think Only would work here as the position code is tied to only one employee in our database.&lt;/P&gt;&lt;P&gt;I plugged the below expression into the Text Object but it's giving me an error that ')' is expected.&amp;nbsp; Does the way I wrote this leave off the last ')'?&lt;/P&gt;&lt;P&gt;=Only(&amp;lt;{ [IncumbentPositionCode] = {'50141373'}} &amp;gt; [IncumbentLastName])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Nov 2018 20:04:50 GMT</pubDate>
    <dc:creator>nesqlik</dc:creator>
    <dc:date>2018-11-19T20:04:50Z</dc:date>
    <item>
      <title>Lookup Function in a Text Object</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-Function-in-a-Text-Object/m-p/1509309#M436549</link>
      <description>&lt;P&gt;Hi Qlik Community,&lt;/P&gt;&lt;P&gt;I've been searching for a way to work this for some time now and haven't been successful.&lt;/P&gt;&lt;P&gt;I have a dashboard that needs an addition.&amp;nbsp; My end users want to see tiles with 'Position Title' and the 'Employee Name' who holds the position.&amp;nbsp; The&amp;nbsp;position will&amp;nbsp;stay static for a long time,&amp;nbsp;but the employees will shuffle in and out.&amp;nbsp; The records in my table look like this:&lt;/P&gt;&lt;P&gt;Position Code, Position Title, Employee Name, etc.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way where I can use a Text Object to return 'Employee Name' where 'Position Code' is equal to x?&amp;nbsp; Essentially this is a vlookup in Excel, but I'm not sure of how to perform this in QlikView.&lt;/P&gt;&lt;P&gt;Thank-you!&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 19:52:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-Function-in-a-Text-Object/m-p/1509309#M436549</guid>
      <dc:creator>nesqlik</dc:creator>
      <dc:date>2018-11-19T19:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup Function in a Text Object</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-Function-in-a-Text-Object/m-p/1509315#M436551</link>
      <description>&lt;P&gt;You should be able to use a simple set analysis or if() in your text object.&lt;/P&gt;&lt;P&gt;Only(&amp;lt;{[Position Code] = {'x'} }&amp;gt; [Employee Name])&lt;/P&gt;&lt;P&gt;(If you might have multiple employees, this will not work - you will have to either concatenate them, or use a filter to only get the last / active one)&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 19:54:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-Function-in-a-Text-Object/m-p/1509315#M436551</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2018-11-19T19:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup Function in a Text Object</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-Function-in-a-Text-Object/m-p/1509320#M436554</link>
      <description>&lt;P&gt;If you know that for each position, there is only one employee, you can&amp;nbsp;use this expression in the text&amp;nbsp;object:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;=&lt;FONT color="#0000ff"&gt;only&lt;/FONT&gt;({&amp;lt;&lt;FONT color="#800000"&gt;Position Code]&lt;/FONT&gt;={x}&amp;gt;}&lt;FONT color="#800000"&gt;[Employee Name]&lt;/FONT&gt;) &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;If there are more than one employees, you can list them by using this:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;=&lt;FONT color="#0000ff"&gt;Concat&lt;/FONT&gt;(&lt;FONT color="#0000ff"&gt;DISTINCT&lt;/FONT&gt; &lt;FONT color="#0000ff"&gt;if&lt;/FONT&gt;(&lt;FONT color="#800000"&gt;[&lt;FONT color="#800000" size="4"&gt;Position Code&lt;/FONT&gt;]&lt;/FONT&gt;='x', &lt;FONT color="#800000"&gt;[&lt;FONT color="#800000" size="4"&gt;Employee Name&lt;/FONT&gt;]&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT size="4"&gt;),',')&lt;/FONT&gt; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 20:03:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-Function-in-a-Text-Object/m-p/1509320#M436554</guid>
      <dc:creator>NZFei</dc:creator>
      <dc:date>2018-11-19T20:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup Function in a Text Object</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-Function-in-a-Text-Object/m-p/1509322#M436555</link>
      <description>&lt;P&gt;Hi thank-you!&lt;/P&gt;&lt;P&gt;I think Only would work here as the position code is tied to only one employee in our database.&lt;/P&gt;&lt;P&gt;I plugged the below expression into the Text Object but it's giving me an error that ')' is expected.&amp;nbsp; Does the way I wrote this leave off the last ')'?&lt;/P&gt;&lt;P&gt;=Only(&amp;lt;{ [IncumbentPositionCode] = {'50141373'}} &amp;gt; [IncumbentLastName])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 20:04:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-Function-in-a-Text-Object/m-p/1509322#M436555</guid>
      <dc:creator>nesqlik</dc:creator>
      <dc:date>2018-11-19T20:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup Function in a Text Object</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-Function-in-a-Text-Object/m-p/1509323#M436556</link>
      <description>&lt;P&gt;=Only({&amp;lt;[IncumbentPositionCode] = {'50141373'}&amp;gt;} &amp;gt; [IncumbentLastName])&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 20:06:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-Function-in-a-Text-Object/m-p/1509323#M436556</guid>
      <dc:creator>NZFei</dc:creator>
      <dc:date>2018-11-19T20:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup Function in a Text Object</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-Function-in-a-Text-Object/m-p/1509325#M436557</link>
      <description>&lt;P&gt;Fantastic!&amp;nbsp; The only formula here was able to solve the expected ')' error in my expression.&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 20:11:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-Function-in-a-Text-Object/m-p/1509325#M436557</guid>
      <dc:creator>nesqlik</dc:creator>
      <dc:date>2018-11-19T20:11:47Z</dc:date>
    </item>
  </channel>
</rss>

