<?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: Select in field action and aggr expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Select-in-field-action-and-aggr-expression/m-p/404512#M568993</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Roberto!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Oct 2012 13:36:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-11T13:36:03Z</dc:date>
    <item>
      <title>Select in field action and aggr expression</title>
      <link>https://community.qlik.com/t5/QlikView/Select-in-field-action-and-aggr-expression/m-p/404507#M568988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I develop employees project distribution model. &lt;/P&gt;&lt;P&gt;Each employee (ID_Employee) works one or several projects (ID_project) each week (WeekName) and has project load (Load).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need buttons selecting 3 groups of employees:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Total project load by selected week &amp;gt;100%&lt;/LI&gt;&lt;LI&gt;Total project load by selected&amp;nbsp; week =100%&lt;/LI&gt;&lt;LI&gt;Total project load by selected week &amp;lt;100%&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The use case is: users select one week and press one of 3 buttons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use expression &lt;STRONG&gt;='('&amp;amp;concat(DISTINCT if(aggr(sum(Load),[ID_Employee])&amp;gt;1,ID_Employee), '|')&amp;amp;')'&lt;/STRONG&gt; and 'select in field' action.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All buttons work correctly, but user needs to click twice if any of 3 buttons was clicked before. On the first click selection clears and on the second click new selection applies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to apply new selection by one click? I tried to add actions "clear the field" and "clear all" but is doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help me please.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 11:57:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-in-field-action-and-aggr-expression/m-p/404507#M568988</guid>
      <dc:creator />
      <dc:date>2012-10-11T11:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Select in field action and aggr expression</title>
      <link>https://community.qlik.com/t5/QlikView/Select-in-field-action-and-aggr-expression/m-p/404508#M568989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the reason is... &lt;/P&gt;&lt;P&gt;&amp;gt;that while button 1 is selected...&amp;nbsp; the options of button 2 and 3 are not in the "possible set".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So with setAnalysis the expressions should be changed so this is circumvented.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll try (as far as time allows me) to give an example to fix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#edit&lt;/P&gt;&lt;P&gt;What you can do to analyse your problem is &lt;/P&gt;&lt;P&gt;- add 3 textboxes (one next to each button)&lt;/P&gt;&lt;P&gt;- add the select in expression in it...&lt;/P&gt;&lt;P&gt;- and when you've don that,play with the buttons&lt;/P&gt;&lt;P&gt;- then you'll understand my mentioned issue&lt;/P&gt;&lt;P&gt;- this can be fixed by changing the expression so they ignore the selections&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 12:30:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-in-field-action-and-aggr-expression/m-p/404508#M568989</guid>
      <dc:creator />
      <dc:date>2012-10-11T12:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Select in field action and aggr expression</title>
      <link>https://community.qlik.com/t5/QlikView/Select-in-field-action-and-aggr-expression/m-p/404509#M568990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Roberto!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried set analysis expression &lt;STRONG&gt;='('&amp;amp;concat(DISTINCT if(aggr(sum({&amp;lt;ID_Employee=&amp;gt;}aggr(DISTINCT sum({&amp;lt;ID_Employee=&amp;gt;} Load),[ID_Employee])),ID_Employee)&amp;gt;1,ID_Employee), '|')&amp;amp;')'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But it doesn't fix a problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please give an example?&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 12:59:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-in-field-action-and-aggr-expression/m-p/404509#M568990</guid>
      <dc:creator />
      <dc:date>2012-10-11T12:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: Select in field action and aggr expression</title>
      <link>https://community.qlik.com/t5/QlikView/Select-in-field-action-and-aggr-expression/m-p/404510#M568991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I must admit that I have difficulties in getting it right.&lt;/P&gt;&lt;P&gt;Your expression also has the problem that it only works when button 1 is pressed OR all selections are cleared.&lt;/P&gt;&lt;P&gt;I feel like some nested aggregations are needed here... At least the textboxes give a clear hint why it doesn't work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any others (setanalysis guru's) with ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally, I'm not sure if it is a bug (buhh!)&lt;/P&gt;&lt;P&gt;Because in the actions, you first clear the fieldselection... When you would do that manually, your buttons would work in 1 click (instead of 2).&lt;/P&gt;&lt;P&gt;Perhaps someone can shed some light on this behavior...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 13:06:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-in-field-action-and-aggr-expression/m-p/404510#M568991</guid>
      <dc:creator />
      <dc:date>2012-10-11T13:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Select in field action and aggr expression</title>
      <link>https://community.qlik.com/t5/QlikView/Select-in-field-action-and-aggr-expression/m-p/404511#M568992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yay! It works!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;'('&amp;amp;concat({&amp;lt;ID_Employee=&amp;gt;}&lt;/P&gt;&lt;P&gt;aggr(&lt;/P&gt;&lt;P&gt;if(&lt;/P&gt;&lt;P&gt;sum({&amp;lt;ID_Employee=&amp;gt;} Load)&lt;/P&gt;&lt;P&gt;//change below for the 3 buttons &amp;lt;1 =1 and &amp;gt;1&lt;/P&gt;&lt;P&gt;&amp;lt;1,&amp;nbsp; &lt;/P&gt;&lt;P&gt;only({&amp;lt;ID_Employee=&amp;gt;} ID_Employee)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;,ID_Employee)&lt;/P&gt;&lt;P&gt;,'|')&amp;amp;')'&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that only 1 action is needed. You can skip the "clear field selections" action...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if it also works on your side.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 13:29:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-in-field-action-and-aggr-expression/m-p/404511#M568992</guid>
      <dc:creator />
      <dc:date>2012-10-11T13:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Select in field action and aggr expression</title>
      <link>https://community.qlik.com/t5/QlikView/Select-in-field-action-and-aggr-expression/m-p/404512#M568993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Roberto!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 13:36:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-in-field-action-and-aggr-expression/m-p/404512#M568993</guid>
      <dc:creator />
      <dc:date>2012-10-11T13:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: Select in field action and aggr expression</title>
      <link>https://community.qlik.com/t5/QlikView/Select-in-field-action-and-aggr-expression/m-p/404513#M568994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're welcome!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 13:36:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-in-field-action-and-aggr-expression/m-p/404513#M568994</guid>
      <dc:creator />
      <dc:date>2012-10-11T13:36:50Z</dc:date>
    </item>
  </channel>
</rss>

