<?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 Make a selection in a different field when user makes selections? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Make-a-selection-in-a-different-field-when-user-makes-selections/m-p/2466212#M99237</link>
    <description>&lt;P&gt;Suppose I have the following simple table:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Load * inline [
ProductID, ProductNM
1, Apple
2, Pear
3, Tomato
4, Grape
];&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let's say there is another table loaded that has ProductID as a key and some data.&lt;/P&gt;
&lt;P&gt;I then want to create a table like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="awwitas_0-1719522279517.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168589i2B8F9AA7EDEC5A64/image-size/medium?v=v2&amp;amp;px=400" role="button" title="awwitas_0-1719522279517.png" alt="awwitas_0-1719522279517.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;But I would like the behavior to be that when a value in the &amp;lt;ProductNM&amp;gt; column is clicked by the user, the &amp;lt;ProductID&amp;gt; is actually what gets the selection. For example, doing this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="awwitas_1-1719522388745.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168590i1BB1A66AEBAF73C7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="awwitas_1-1719522388745.png" alt="awwitas_1-1719522388745.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Should result in this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="awwitas_2-1719522411930.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168591i5210F6B42037E414/image-size/medium?v=v2&amp;amp;px=400" role="button" title="awwitas_2-1719522411930.png" alt="awwitas_2-1719522411930.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I know I can user Aggr() for this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;=Aggr( ProductNM , ProductID)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="awwitas_3-1719522490387.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168592i7295E3FC08FEFE2F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="awwitas_3-1719522490387.png" alt="awwitas_3-1719522490387.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;However, doing that makes it difficult to select multiple values, because as soon as you click on one value the rest disappear from the selection box:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="awwitas_4-1719522675321.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168593iB89CF3147191E165/image-size/medium?v=v2&amp;amp;px=400" role="button" title="awwitas_4-1719522675321.png" alt="awwitas_4-1719522675321.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can get pretty close to the desired functionality by wrapping &amp;lt;ProductNM&amp;gt; with the Only() function and a set identifier:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;=Aggr( Only({1} ProductNM), ProductID)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="awwitas_5-1719522805578.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168594i2E9986D653CA4C5E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="awwitas_5-1719522805578.png" alt="awwitas_5-1719522805578.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However:&lt;/P&gt;
&lt;P&gt;1) All other field value options show as 'excluded' (dark grey) instead of 'alternative' (light grey)&lt;/P&gt;
&lt;P&gt;2) I am mildly concerned that with a big set of data and many additional fields there'll be a performance cost to using the Aggr()/Only() combo.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any other way to accomplish this? Is the performance issue a concern?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the use case I have in mind, there will always be a 1:1 relationship between &amp;lt;ProductNM&amp;gt; and &amp;lt;ProductID&amp;gt;. I'd like this functionality to avoid users possibly getting confused by having intersecting selections in both &amp;lt;ProductID&amp;gt; and &amp;lt;ProductNM&amp;gt; - the actual Qlik has many sheets and a significantly more complex data model, so I'd like to keep possible selections in key fields to a minimum.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jun 2024 21:29:19 GMT</pubDate>
    <dc:creator>awwitas</dc:creator>
    <dc:date>2024-06-27T21:29:19Z</dc:date>
    <item>
      <title>Make a selection in a different field when user makes selections?</title>
      <link>https://community.qlik.com/t5/App-Development/Make-a-selection-in-a-different-field-when-user-makes-selections/m-p/2466212#M99237</link>
      <description>&lt;P&gt;Suppose I have the following simple table:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Load * inline [
ProductID, ProductNM
1, Apple
2, Pear
3, Tomato
4, Grape
];&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let's say there is another table loaded that has ProductID as a key and some data.&lt;/P&gt;
&lt;P&gt;I then want to create a table like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="awwitas_0-1719522279517.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168589i2B8F9AA7EDEC5A64/image-size/medium?v=v2&amp;amp;px=400" role="button" title="awwitas_0-1719522279517.png" alt="awwitas_0-1719522279517.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;But I would like the behavior to be that when a value in the &amp;lt;ProductNM&amp;gt; column is clicked by the user, the &amp;lt;ProductID&amp;gt; is actually what gets the selection. For example, doing this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="awwitas_1-1719522388745.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168590i1BB1A66AEBAF73C7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="awwitas_1-1719522388745.png" alt="awwitas_1-1719522388745.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Should result in this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="awwitas_2-1719522411930.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168591i5210F6B42037E414/image-size/medium?v=v2&amp;amp;px=400" role="button" title="awwitas_2-1719522411930.png" alt="awwitas_2-1719522411930.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I know I can user Aggr() for this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;=Aggr( ProductNM , ProductID)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="awwitas_3-1719522490387.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168592i7295E3FC08FEFE2F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="awwitas_3-1719522490387.png" alt="awwitas_3-1719522490387.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;However, doing that makes it difficult to select multiple values, because as soon as you click on one value the rest disappear from the selection box:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="awwitas_4-1719522675321.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168593iB89CF3147191E165/image-size/medium?v=v2&amp;amp;px=400" role="button" title="awwitas_4-1719522675321.png" alt="awwitas_4-1719522675321.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can get pretty close to the desired functionality by wrapping &amp;lt;ProductNM&amp;gt; with the Only() function and a set identifier:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;=Aggr( Only({1} ProductNM), ProductID)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="awwitas_5-1719522805578.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168594i2E9986D653CA4C5E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="awwitas_5-1719522805578.png" alt="awwitas_5-1719522805578.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However:&lt;/P&gt;
&lt;P&gt;1) All other field value options show as 'excluded' (dark grey) instead of 'alternative' (light grey)&lt;/P&gt;
&lt;P&gt;2) I am mildly concerned that with a big set of data and many additional fields there'll be a performance cost to using the Aggr()/Only() combo.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any other way to accomplish this? Is the performance issue a concern?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the use case I have in mind, there will always be a 1:1 relationship between &amp;lt;ProductNM&amp;gt; and &amp;lt;ProductID&amp;gt;. I'd like this functionality to avoid users possibly getting confused by having intersecting selections in both &amp;lt;ProductID&amp;gt; and &amp;lt;ProductNM&amp;gt; - the actual Qlik has many sheets and a significantly more complex data model, so I'd like to keep possible selections in key fields to a minimum.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2024 21:29:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Make-a-selection-in-a-different-field-when-user-makes-selections/m-p/2466212#M99237</guid>
      <dc:creator>awwitas</dc:creator>
      <dc:date>2024-06-27T21:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Make a selection in a different field when user makes selections?</title>
      <link>https://community.qlik.com/t5/App-Development/Make-a-selection-in-a-different-field-when-user-makes-selections/m-p/2466270#M99241</link>
      <description>&lt;P&gt;The native Qlik logic of associating data worked well and is&amp;nbsp;very simple in the usability for the users - but very powerful. I have the impression that you want to simplify it even more with high risks to disimprove it.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 06:49:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Make-a-selection-in-a-different-field-when-user-makes-selections/m-p/2466270#M99241</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-06-28T06:49:44Z</dc:date>
    </item>
  </channel>
</rss>

