<?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: How to use FieldSelections to pull value from seperate table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-use-FieldSelections-to-pull-value-from-seperate-table/m-p/4852#M382</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just out of interest, in the variable expression editor is there&amp;nbsp; a "=" before the expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and what does just writing "=vselections" return in a text box?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think your variable might be returning the literal string of the function and not the resulting text that you want to insert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So $(vselections) will return the &lt;STRONG&gt;string &lt;/STRONG&gt;"getFieldSelections(name)" . the second set of variable expansion is then evaluating the function itself. It still works though!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jan 2018 15:55:53 GMT</pubDate>
    <dc:creator>ericasense</dc:creator>
    <dc:date>2018-01-23T15:55:53Z</dc:date>
    <item>
      <title>How to use FieldSelections to pull value from seperate table</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-use-FieldSelections-to-pull-value-from-seperate-table/m-p/4846#M376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to build a visualisation in one of my Qlik Apps which essentially does the following, I will have a drop down list of advisers, for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Advisor&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;AA&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;BB&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;CC&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;DD&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;EE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;FF&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will then have a seperate table with targets, but this can also include combined targets for 2 advisors, or more. Example being:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;AdvisorSelection&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Target&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;AA&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;AA,BB&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;AA,BB,CC&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;AA,BB,CC,DD&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;CC,DD&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;BB&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;CC&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;DD&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;EE&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now it would be good noting there is no formula relating to AA's target and BB's - or they are not a calculated version but essentially depending on the selection on the app you use - it would bring up the selection for this target.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the moment i can use GetFieldSelections(Advisor) so if i click AA &amp;amp; BB on the dropdown i get "AA, BB"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would then like to look up this seperate table which is not joined to other data tables and bring through the target value. I have tried using FieldValue and FieldIndex but am not getting it to work, and Peek/ match functions are script only. This is for the chart side so any ideas would be greatly appreciated. It would also be good noting i'm only interested in if the values match something in the table so if i select something not in AdvisorSelection im happy for it to show blank aswell. Hopefully this makes sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 16:03:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-use-FieldSelections-to-pull-value-from-seperate-table/m-p/4846#M376</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-22T16:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to use FieldSelections to pull value from seperate table</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-use-FieldSelections-to-pull-value-from-seperate-table/m-p/4847#M377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could return the value through set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you put the string into a variable, you can pass this into set analysis to return the one value that is associated with the string of names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so set a variable vAdvisorNames=concat(distinct Advisor,',')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use this in the expression to pull the required value out of the table, if there are no matches it should return null&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Only({&amp;lt;AdvisorSelection={"$(vAdvisorNames)}&amp;gt;} Target)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 14:08:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-use-FieldSelections-to-pull-value-from-seperate-table/m-p/4847#M377</guid>
      <dc:creator>ericasense</dc:creator>
      <dc:date>2018-01-23T14:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to use FieldSelections to pull value from seperate table</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-use-FieldSelections-to-pull-value-from-seperate-table/m-p/4848#M378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erica&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your reply, I think i am close but not quite there. I didnt think of using Variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have got this in my load script as an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Names:&lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;Inline [&lt;/P&gt;&lt;P&gt;name&lt;/P&gt;&lt;P&gt;Betacab&lt;/P&gt;&lt;P&gt;Astrida&lt;/P&gt;&lt;P&gt;Divadip&lt;/P&gt;&lt;P&gt;] (delimiter is '|');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;targets:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;Inline [&lt;/P&gt;&lt;P&gt;customer|target&lt;/P&gt;&lt;P&gt;Betacab|300&lt;/P&gt;&lt;P&gt;Astrida|500&lt;/P&gt;&lt;P&gt;Astrida, Betacab|600&lt;/P&gt;&lt;P&gt;] (delimiter is '|');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then on the variables i have vSelections which is&amp;nbsp; getFieldSelections(name)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lastly i have tried the only formula, and cannot get this working with apostrophes and not:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Only({&amp;lt;customer={$(vselections)&amp;gt;} target)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas what I might be missing? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 15:02:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-use-FieldSelections-to-pull-value-from-seperate-table/m-p/4848#M378</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-23T15:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to use FieldSelections to pull value from seperate table</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-use-FieldSelections-to-pull-value-from-seperate-table/m-p/4849#M379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Quick googling got it working! i tried finding similar posts, i was only slightly off:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only({&amp;lt;customer={'$(=$(vselections))'}&amp;gt;} target)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this works now, perfect thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 15:09:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-use-FieldSelections-to-pull-value-from-seperate-table/m-p/4849#M379</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-23T15:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to use FieldSelections to pull value from seperate table</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-use-FieldSelections-to-pull-value-from-seperate-table/m-p/4850#M380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're almost there, there was just a bit of syntax missing!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Provided that vSelections is returning what you need (does it always do it in the correct order for example?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the syntax is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Only({&amp;lt;customer={&lt;STRONG style="text-decoration: underline;"&gt;'&lt;/STRONG&gt;$(vselections)&lt;STRONG style="text-decoration: underline;"&gt;'}&lt;/STRONG&gt;&amp;gt;} target)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You needed to wrap the variable expansion in quotes, and there was a curly bracket missing &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 15:10:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-use-FieldSelections-to-pull-value-from-seperate-table/m-p/4850#M380</guid>
      <dc:creator>ericasense</dc:creator>
      <dc:date>2018-01-23T15:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to use FieldSelections to pull value from seperate table</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-use-FieldSelections-to-pull-value-from-seperate-table/m-p/4851#M381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, this didnt work on my version of qliksense but the comment i put above does - odd! it looks like it would be right, but the extra dollar sign seemed to have fixed it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for the ordering, it will do the selections alphabetically as I have tested doing this backwards so this seems to work. Its not a great solution to a weird question as I ideally would like all the targets to add up or have some sort of logic behind, but it works for what I need! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 15:13:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-use-FieldSelections-to-pull-value-from-seperate-table/m-p/4851#M381</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-23T15:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to use FieldSelections to pull value from seperate table</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-use-FieldSelections-to-pull-value-from-seperate-table/m-p/4852#M382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just out of interest, in the variable expression editor is there&amp;nbsp; a "=" before the expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and what does just writing "=vselections" return in a text box?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think your variable might be returning the literal string of the function and not the resulting text that you want to insert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So $(vselections) will return the &lt;STRONG&gt;string &lt;/STRONG&gt;"getFieldSelections(name)" . the second set of variable expansion is then evaluating the function itself. It still works though!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 15:55:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-use-FieldSelections-to-pull-value-from-seperate-table/m-p/4852#M382</guid>
      <dc:creator>ericasense</dc:creator>
      <dc:date>2018-01-23T15:55:53Z</dc:date>
    </item>
  </channel>
</rss>

