<?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: Using Aggregate into a Button field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-Aggregate-into-a-Button-field/m-p/1118407#M462655</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diego,&lt;/P&gt;&lt;P&gt;On field, you have to return the name of a field, and on expression the value. What do you wanna do with this button?&lt;/P&gt;&lt;P&gt;Which action are you using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Aug 2016 09:37:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-08-31T09:37:50Z</dc:date>
    <item>
      <title>Using Aggregate into a Button field</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Aggregate-into-a-Button-field/m-p/1118405#M462653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I'm trying to use a calculated expression into a button, I am now putting this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;aggr(count(distinct [Don - Key]),[Pers - Code])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;into the field and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=2 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as search string.&lt;/P&gt;&lt;P&gt;It's not working, so I'm not sure. Can I use an expression into the Field? What am I doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Diego&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 08:58:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Aggregate-into-a-Button-field/m-p/1118405#M462653</guid>
      <dc:creator />
      <dc:date>2016-08-31T08:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Using Aggregate into a Button field</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Aggregate-into-a-Button-field/m-p/1118406#M462654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For select in field action? I doubt. What exactly are you trying to do? Select Pers - Code where Count(DISTINCT [Don - Key]) = 2?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 09:37:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Aggregate-into-a-Button-field/m-p/1118406#M462654</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-31T09:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using Aggregate into a Button field</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Aggregate-into-a-Button-field/m-p/1118407#M462655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diego,&lt;/P&gt;&lt;P&gt;On field, you have to return the name of a field, and on expression the value. What do you wanna do with this button?&lt;/P&gt;&lt;P&gt;Which action are you using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 09:37:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Aggregate-into-a-Button-field/m-p/1118407#M462655</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-31T09:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using Aggregate into a Button field</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Aggregate-into-a-Button-field/m-p/1118408#M462656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'll try to explain&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a database with people (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;[Pers - Code]&lt;/SPAN&gt; is the code) and they are doing actions that I store in a different table (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;[Don - Key] is the key of this actions&lt;/SPAN&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to create a button that give me the possibility to choose people that do a number of actions (2 is just an example) in the current set of selections (so I can't do it in the script).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using " &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;aggr(count(distinct [Don - Key]),[Pers - Code]) " I can have the number of actions for each people, but I can't create a button to do selections on this&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 09:45:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Aggregate-into-a-Button-field/m-p/1118408#M462656</guid>
      <dc:creator />
      <dc:date>2016-08-31T09:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using Aggregate into a Button field</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Aggregate-into-a-Button-field/m-p/1118409#M462657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;I'll try to explain&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I have a database with people (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;[Pers - Code]&lt;/SPAN&gt; is the code) and they are doing actions that I store in a different table (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;[Don - Key] is the key of this actions&lt;/SPAN&gt;).&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I'd like to create a button that give me the possibility to choose people that do a number of actions (2 is just an example) in the current set of selections (so I can't do it in the script).&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Using " &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;aggr(count(distinct [Don - Key]),[Pers - Code]) " I can have the number of actions for each people, but I can't create a button to do selections on this&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 09:45:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Aggregate-into-a-Button-field/m-p/1118409#M462657</guid>
      <dc:creator />
      <dc:date>2016-08-31T09:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using Aggregate into a Button field</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Aggregate-into-a-Button-field/m-p/1118410#M462658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diego,&lt;/P&gt;&lt;P&gt;Create a variable:&lt;/P&gt;&lt;P&gt;vVar = Concat(Distinct &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;[Don - Key],','&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, edit your button action:&lt;/P&gt;&lt;P&gt;On field put [Pers - Code].&lt;/P&gt;&lt;P&gt;On expression put: '('&amp;amp;Concat({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;[Don - Key]={$(vVar)}&lt;/SPAN&gt;&amp;gt;} Distinct &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;[Pers - Code],'|')&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; font-size: 13.3333px;"&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; font-size: 13.3333px;"&gt;Regards!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 11:39:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Aggregate-into-a-Button-field/m-p/1118410#M462658</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-31T11:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using Aggregate into a Button field</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Aggregate-into-a-Button-field/m-p/1118411#M462659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for the dumb question, I'm trying but it seems not working to me.. Where do I say that if I push the button I select the value 2, 3 or a different one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Diego&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 12:08:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Aggregate-into-a-Button-field/m-p/1118411#M462659</guid>
      <dc:creator />
      <dc:date>2016-08-31T12:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using Aggregate into a Button field</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Aggregate-into-a-Button-field/m-p/1118412#M462660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diego, with my code you select the people who has the keys selected. If you want to do it with static numbers, you don't need the variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'('&amp;amp;Concat({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;[Don - Key]={2}&lt;/SPAN&gt;&amp;gt;} Distinct &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;[Pers - Code],'|')&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; font-size: 13.3333px;"&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; font-size: 13.3333px;"&gt;Regards!!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 06:08:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Aggregate-into-a-Button-field/m-p/1118412#M462660</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-01T06:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using Aggregate into a Button field</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Aggregate-into-a-Button-field/m-p/1118413#M462661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your help, I'm still not able to make it works but I'm trying to understand why, probably I just need to study better the Set analysis statement.&lt;/P&gt;&lt;P&gt;From what I can read in your, you expect to find a &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px; background-color: #f2f2f2;"&gt;[Don - Key] equals to 2, is it correct? If yes, it can't works for me because I need to count the keys for each person and select the people who have a number of action equals to 2&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 06:55:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Aggregate-into-a-Button-field/m-p/1118413#M462661</guid>
      <dc:creator />
      <dc:date>2016-09-01T06:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using Aggregate into a Button field</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Aggregate-into-a-Button-field/m-p/1118414#M462662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please, attach one example of your app, plz.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 08:47:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Aggregate-into-a-Button-field/m-p/1118414#M462662</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-01T08:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using Aggregate into a Button field</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Aggregate-into-a-Button-field/m-p/1118415#M462663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Thank you so much for your patience Manuel,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;in attach an example of what I'm doing (this one has informations from an excel to do it faster, in the real one I am connected to a database).&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Inside you can find:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;- a table of people&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;- a table of actions, linked to people&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;- a list of aggregated actions&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;- 4 buttons (it's just an example)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;What I am missing right now is to have the buttons working on this field I am calculating (if I press 2 in aggregate, I have people with 2 actions, 3 people with 3 actions etc).&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Also, I cannot modify and put the aggregation in the script because I need to have it changing depending on the selecions I am doing.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks again&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Diego&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 09:14:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Aggregate-into-a-Button-field/m-p/1118415#M462663</guid>
      <dc:creator />
      <dc:date>2016-09-01T09:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using Aggregate into a Button field</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Aggregate-into-a-Button-field/m-p/1118416#M462664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diego,&lt;/P&gt;&lt;P&gt;With your example is more clear that you want to do.&lt;/P&gt;&lt;P&gt;1.- On each button create one action to Select Field&lt;/P&gt;&lt;P&gt;2.- On Field write your field [Pers&amp;nbsp; - Code]&lt;/P&gt;&lt;P&gt;3.- On respect button write this:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;For 1 action: ='('&amp;amp;Concat({&amp;lt;[Don - Key]={"=aggr(count(distinct [Don - Key]), [Pers&amp;nbsp; - Code])=1"}&amp;gt;} Distinct [Pers&amp;nbsp; - Code],'|')&amp;amp;')'&lt;/LI&gt;&lt;LI&gt;For 2 actions:='('&amp;amp;Concat({&amp;lt;[Don - Key]={"=aggr(count(distinct [Don - Key]), [Pers&amp;nbsp; - Code])=2"}&amp;gt;} Distinct [Pers&amp;nbsp; - Code],'|')&amp;amp;')'&lt;/LI&gt;&lt;LI&gt;For 3 action2:='('&amp;amp;Concat({&amp;lt;[Don - Key]={"=aggr(count(distinct [Don - Key]), [Pers&amp;nbsp; - Code])=3"}&amp;gt;} Distinct [Pers&amp;nbsp; - Code],'|')&amp;amp;')'&lt;/LI&gt;&lt;LI&gt;For 4 actions:='('&amp;amp;Concat({&amp;lt;[Don - Key]={"=aggr(count(distinct [Don - Key]), [Pers&amp;nbsp; - Code])=4"}&amp;gt;} Distinct [Pers&amp;nbsp; - Code],'|')&amp;amp;')'&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression returns an string with the values of Pers-Code concatenated, and separated by | (qlikview standard for select more than one value) on Don-Key (calculated by =aggr(count(distinct [Don - Key]), [Pers&amp;nbsp; - Code])) are 1, 2, 3 or 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 12:52:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Aggregate-into-a-Button-field/m-p/1118416#M462664</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-01T12:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using Aggregate into a Button field</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Aggregate-into-a-Button-field/m-p/1118417#M462665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 13:09:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Aggregate-into-a-Button-field/m-p/1118417#M462665</guid>
      <dc:creator />
      <dc:date>2016-09-01T13:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using Aggregate into a Button field</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Aggregate-into-a-Button-field/m-p/1118418#M462666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're wellcome&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 15:27:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Aggregate-into-a-Button-field/m-p/1118418#M462666</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-01T15:27:00Z</dc:date>
    </item>
  </channel>
</rss>

