<?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: Help with Select in Field Trigger in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-Select-in-Field-Trigger/m-p/558819#M208591</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, AJ!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is awesome!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jan 2014 19:37:10 GMT</pubDate>
    <dc:creator>mikecrengland</dc:creator>
    <dc:date>2014-01-07T19:37:10Z</dc:date>
    <item>
      <title>Help with Select in Field Trigger</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Select-in-Field-Trigger/m-p/558815#M208587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to select the top N values for a field when a user navigates to a tab. I'm experimenting&amp;nbsp; with the Adventureworks DB and created a listbox with the correct values, but can't figure out how to translate it to a trigger. The expression I have so far is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(Aggr(Rank(Sum(SalesAmount)),City) &amp;lt; 5, City)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it works fine and gives me the top 4 Cities by sales. How do I translate that to the Search String for a Select in Field trigger (or action)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;www.fortunecookiebi.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jan 2014 22:25:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Select-in-Field-Trigger/m-p/558815#M208587</guid>
      <dc:creator>mikecrengland</dc:creator>
      <dc:date>2014-01-06T22:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Select in Field Trigger</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Select-in-Field-Trigger/m-p/558816#M208588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Mike,&lt;/P&gt;&lt;P&gt;You can go to Settings -&amp;gt; Sheet Properties -&amp;gt; Triggers and click Add Actions under OnActivateSheet.&lt;/P&gt;&lt;P&gt;Here you can select 'Select in Field' and give &lt;STRONG&gt;City&lt;/STRONG&gt; as the Field Name and following expression in search string:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=If(Aggr(Rank(Sum(SalesAmount)),City) &amp;lt; 5, '('&amp;amp; Replace(City,',','|')&amp;amp;')')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Please let me know if you find any issues.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;AJ&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jan 2014 22:58:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Select-in-Field-Trigger/m-p/558816#M208588</guid>
      <dc:creator />
      <dc:date>2014-01-06T22:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Select in Field Trigger</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Select-in-Field-Trigger/m-p/558817#M208589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi AJ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. Unfortunately, I can't get it to work. If I put&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6; color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; line-height: 1.5em;"&gt; '('&amp;amp; Replace(City,',','|')&amp;amp;')'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6; color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6; color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; line-height: 1.5em;"&gt;into a text object and select a single City, it shows, for example (Paris). If I select multiple values from City, it shows ()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6; color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6; color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; line-height: 1.5em;"&gt;&lt;IMG alt="1-7-2014 8-55-18 AM.png" class="jive-image" src="/legacyfs/online/51165_1-7-2014 8-55-18 AM.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6; color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; line-height: 1.5em;"&gt;I've been messing with it and think it needs a 'concat' in there somewhere, but still can't get it right. I tried &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6; color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6; color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; line-height: 1.5em;"&gt;'(' &amp;amp; Concat(Distinct City,'|') &amp;amp; ')'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6; color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6; color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; line-height: 1.5em;"&gt;and that brings back what looks like the right format for multiple values&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6; color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6; color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; line-height: 1.5em;"&gt;&lt;IMG alt="1-7-2014 8-58-35 AM.png" class="jive-image" src="/legacyfs/online/51166_1-7-2014 8-58-35 AM.png" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6; color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6; color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; line-height: 1.5em;"&gt;but the trigger won't set the values. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6; color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6; color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; line-height: 1.5em;"&gt;I think we're close... Any thoughts?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6; color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6; color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; line-height: 1.5em;"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6; color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6; color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; line-height: 1.5em;"&gt;Mike&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6; color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; line-height: 1.5em;"&gt;www.fortunecookiebi.com&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6; color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 16:02:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Select-in-Field-Trigger/m-p/558817#M208589</guid>
      <dc:creator>mikecrengland</dc:creator>
      <dc:date>2014-01-07T16:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Help with Select in Field Trigger</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Select-in-Field-Trigger/m-p/558818#M208590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yup you are right. Should use concat. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;I used this formula and it worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='('&amp;amp;concat(if(Aggr(Rank(sum(Sales)),City)&amp;lt;4,City),'|')&amp;amp;')'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also attached a sample qvw with some dummy data. If you click the second tab 'Tab with Trigger' it will automatically select top three cities.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this meet your requirement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;AJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 16:44:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Select-in-Field-Trigger/m-p/558818#M208590</guid>
      <dc:creator />
      <dc:date>2014-01-07T16:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Select in Field Trigger</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Select-in-Field-Trigger/m-p/558819#M208591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, AJ!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is awesome!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 19:37:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Select-in-Field-Trigger/m-p/558819#M208591</guid>
      <dc:creator>mikecrengland</dc:creator>
      <dc:date>2014-01-07T19:37:10Z</dc:date>
    </item>
  </channel>
</rss>

