<?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 Create Button Action Based on Criteria in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-Button-Action-Based-on-Criteria/m-p/1263808#M870468</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to implement a simple button to make a selection dynamically, but am trying to get my head around the "Select in Field" action.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 3 fields: CitizenID, ResidenceTown, WorkTown&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to make the button to select only CitizenID where ResidenceTown = WorkTown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have tried the below but it isn't working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/144094_Capture.JPG" style="height: 158px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any tips would be great!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Create Button Action Based on Criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Button-Action-Based-on-Criteria/m-p/1263808#M870468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to implement a simple button to make a selection dynamically, but am trying to get my head around the "Select in Field" action.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 3 fields: CitizenID, ResidenceTown, WorkTown&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to make the button to select only CitizenID where ResidenceTown = WorkTown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have tried the below but it isn't working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/144094_Capture.JPG" style="height: 158px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any tips would be great!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Button-Action-Based-on-Criteria/m-p/1263808#M870468</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Create Button Action Based on Criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Button-Action-Based-on-Criteria/m-p/1263809#M870470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried making a simple flag in the script:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Load *&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,If(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ResidenceTown = WorkTown, 1, 0) as CitizenFlag&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;From Source;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in the Action tab Field you you write CitizenFlag and in the Search String 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 06:48:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Button-Action-Based-on-Criteria/m-p/1263809#M870470</guid>
      <dc:creator>MindaugasBacius</dc:creator>
      <dc:date>2016-11-17T06:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: Create Button Action Based on Criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Button-Action-Based-on-Criteria/m-p/1263810#M870472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My ResidenceTown and WorkTown fields are in different tables, hence I'm unable to use the Flag method&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 06:50:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Button-Action-Based-on-Criteria/m-p/1263810#M870472</guid>
      <dc:creator />
      <dc:date>2016-11-17T06:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Create Button Action Based on Criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Button-Action-Based-on-Criteria/m-p/1263811#M870474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;you'll need to use an expression that creates a list on customers as an output &lt;/P&gt;&lt;P&gt;so you'll need to use in the search string something like &lt;/P&gt;&lt;P&gt;='(' &amp;amp; concat(aggr(if([WorkTown]=[ResidenceTown],CitizenID),&lt;SPAN style="font-size: 13.3333px;"&gt;CitizenID),'|') &amp;amp; ')'&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 06:51:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Button-Action-Based-on-Criteria/m-p/1263811#M870474</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2016-11-17T06:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Create Button Action Based on Criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Button-Action-Based-on-Criteria/m-p/1263812#M870475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='(' &amp;amp; Concat(Distinct If(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[WorkTown] &lt;/SPAN&gt;=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[ResidenceTown] &lt;/SPAN&gt;,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;CitizenID&lt;/SPAN&gt;),'|') &amp;amp; ')'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 06:52:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Button-Action-Based-on-Criteria/m-p/1263812#M870475</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-11-17T06:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Create Button Action Based on Criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Button-Action-Based-on-Criteria/m-p/1263813#M870476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, for more clarification the action Select in Field works like this.&lt;/P&gt;&lt;P&gt;You choose the Field and the Search String you can write the possible values from the Field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example in the Field you've written CitizenID. It contains data like (1, 2, 3, 4 and so on). In this case Search String means you have to write down the CitizenID like 4.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 06:53:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Button-Action-Based-on-Criteria/m-p/1263813#M870476</guid>
      <dc:creator>MindaugasBacius</dc:creator>
      <dc:date>2016-11-17T06:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Create Button Action Based on Criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Button-Action-Based-on-Criteria/m-p/1263814#M870477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tamil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Works well. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 06:56:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Button-Action-Based-on-Criteria/m-p/1263814#M870477</guid>
      <dc:creator />
      <dc:date>2016-11-17T06:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Create Button Action Based on Criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Button-Action-Based-on-Criteria/m-p/1263815#M870478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I forgot to mention one point. If your &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;CitizenID contains any spaces like "ID 0001" then above method won't work. To be on the safer side, you can write like &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='(' &amp;amp; Concat(Distinct If([WorkTown] =[ResidenceTown],&lt;STRONG&gt;Chr(34) &amp;amp;&lt;/STRONG&gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;CitizenID &lt;/SPAN&gt;&lt;STRONG&gt;&amp;amp; Chr(34)&lt;/STRONG&gt;),'|') &amp;amp; ')'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression works in both the cases&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 07:07:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Button-Action-Based-on-Criteria/m-p/1263815#M870478</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-11-17T07:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create Button Action Based on Criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Button-Action-Based-on-Criteria/m-p/1263816#M870479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One more way of doing this is as follow: Hope this helps.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='(' &amp;amp; concat( {&amp;lt;CitizenID={"=WorkTown=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ResidenceTown&lt;/SPAN&gt;"}&amp;gt;} CitizenID, '|')&amp;nbsp; &amp;amp; ')'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 08:34:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Button-Action-Based-on-Criteria/m-p/1263816#M870479</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2016-11-17T08:34:22Z</dc:date>
    </item>
  </channel>
</rss>

