<?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: Problem with actions &amp;quot;on activate&amp;quot; in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-actions-quot-on-activate-quot/m-p/303053#M112135</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicolas, &lt;/P&gt;&lt;P&gt;For me all ok, pls see .rar adjust for explain&lt;/P&gt;&lt;P&gt;Good luck, Luis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jul 2011 10:08:38 GMT</pubDate>
    <dc:creator>llauses243</dc:creator>
    <dc:date>2011-07-25T10:08:38Z</dc:date>
    <item>
      <title>Problem with actions "on activate"</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-actions-quot-on-activate-quot/m-p/303049#M112131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want my application to have the following behavior:&lt;/P&gt;&lt;P&gt;- if in the "Field 1" there is only 1 value possible other than "other", select this value&lt;/P&gt;&lt;P&gt;- else select nothing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my actions, I set :&lt;/P&gt;&lt;P&gt;- clear all&lt;/P&gt;&lt;P&gt;- Field1: =if(count(distinct if(Field1 &amp;lt;&amp;gt; 'other', Field1)) = 1, only(if(Field1 &amp;lt;&amp;gt; 'other', Field1)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should work.&lt;/P&gt;&lt;P&gt;BUT, when I activate the sheet with a previous selection, the "clear all" statement &lt;STRONG&gt;is not done first&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exemple:&lt;/P&gt;&lt;P&gt;My data are the following :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Field1, Field2&lt;/P&gt;&lt;P&gt;A, 1&lt;/P&gt;&lt;P&gt;B, 2&lt;/P&gt;&lt;P&gt;other, 1000&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I have a previous selection in "Field2" with only 1 element, the result of the actions "on activate" is that 1 value is selected whereas none should be selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is like if the "count" function was done before the "clear all" action.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A solution is to use the following formula :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;=if(count({1} distinct if(Field1 &amp;lt;&amp;gt; 'other', Field1)) = 1, only({1} if(Field1 &amp;lt;&amp;gt; 'other', Field1)))&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I think that the fact the actions are not done in the correct order is a bug.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2011 08:26:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-actions-quot-on-activate-quot/m-p/303049#M112131</guid>
      <dc:creator />
      <dc:date>2011-07-25T08:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with actions "on activate"</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-actions-quot-on-activate-quot/m-p/303050#M112132</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;&amp;nbsp;&amp;nbsp; Please have a look at the example attached here with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Hope this is what you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Delete 1 value from the field and reload it again and check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2011 08:38:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-actions-quot-on-activate-quot/m-p/303050#M112132</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-07-25T08:38:15Z</dc:date>
    </item>
    <item>
      <title>Problem with actions "on activate"</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-actions-quot-on-activate-quot/m-p/303051#M112133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I have only "A" and "other", I select "other", I go to the sheet --&amp;gt; nothing is selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The usage of "invert selection" is quite counterintuitive &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a solution using &lt;/P&gt;&lt;PRE class="jive-pre notranslate" style="background-color: #ffffff; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; font-size: 1.2em; margin-top: 1em; margin-right: 2em; margin-bottom: 0.5em; margin-left: 2em; padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 1em; display: block; overflow-x: auto; overflow-y: auto; width: auto; white-space: pre; border-top-color: #eeeeee; border-right-color: #eeeeee; border-bottom-color: #eeeeee; border-left-color: #cccccc; background-position: repeat repeat; border-style: solid;"&gt;&lt;CODE class="jive-code"&gt;=if(count({1} distinct if(Field1 &amp;lt;&amp;gt; 'other', Field1)) = 1, only({1} if(Field1 &amp;lt;&amp;gt; 'other', Field1)))&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I'd like to know why "clear all" is not done first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I suggest a bug ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2011 08:46:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-actions-quot-on-activate-quot/m-p/303051#M112133</guid>
      <dc:creator />
      <dc:date>2011-07-25T08:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with actions "on activate"</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-actions-quot-on-activate-quot/m-p/303052#M112134</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;&amp;nbsp;&amp;nbsp; Actually it did, but then you had the if statement, i think that didnt work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2011 08:50:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-actions-quot-on-activate-quot/m-p/303052#M112134</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-07-25T08:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with actions "on activate"</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-actions-quot-on-activate-quot/m-p/303053#M112135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicolas, &lt;/P&gt;&lt;P&gt;For me all ok, pls see .rar adjust for explain&lt;/P&gt;&lt;P&gt;Good luck, Luis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2011 10:08:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-actions-quot-on-activate-quot/m-p/303053#M112135</guid>
      <dc:creator>llauses243</dc:creator>
      <dc:date>2011-07-25T10:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with actions "on activate"</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-actions-quot-on-activate-quot/m-p/303054#M112136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day Luis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, I don't understand what your application shows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you say that, for you, the selection of "B" doesn't affect the :&lt;/P&gt;&lt;P&gt;- CLEAR ALL&lt;/P&gt;&lt;P&gt;- Field1 = &lt;CODE class="jive-code"&gt;if(count(distinct if(Field1 &amp;lt;&amp;gt; 'other', Field1)) = 1, only(if(Field1 &amp;lt;&amp;gt; 'other', Field1)))&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2011 10:30:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-actions-quot-on-activate-quot/m-p/303054#M112136</guid>
      <dc:creator />
      <dc:date>2011-07-25T10:30:13Z</dc:date>
    </item>
    <item>
      <title>Problem with actions "on activate"</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-actions-quot-on-activate-quot/m-p/303055#M112137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicolas, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For me when you select a unique value&amp;nbsp; in Field2 in tab 1 (in Field1 only is possible a value), then when pass to tab 2 (with option Set Anz $), automatic deselect value in Field2 (Clear All), after by Select in Field for Field1 is select a only value¡¡, then for me all ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck, Luis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2011 14:41:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-actions-quot-on-activate-quot/m-p/303055#M112137</guid>
      <dc:creator>llauses243</dc:creator>
      <dc:date>2011-07-25T14:41:31Z</dc:date>
    </item>
    <item>
      <title>Problem with actions "on activate"</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-actions-quot-on-activate-quot/m-p/303056#M112138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I go to the first sheet and make sure 1 value is selected:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2011-07-25_170511.png" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/6105_2011-07-25_170511.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next step, I click on the second sheet.&lt;/P&gt;&lt;P&gt;What I &lt;STRONG&gt;expect &lt;/STRONG&gt;is :&lt;/P&gt;&lt;P&gt;- CLEAR ALL --&amp;gt; nothing is selected&lt;/P&gt;&lt;P&gt;- &lt;EM&gt;=if(count(distinct if(Field1 &amp;lt;&amp;gt; 'other', Field1)) = 1, only(if(Field1 &amp;lt;&amp;gt; 'other', Field1)))&lt;/EM&gt; --&amp;gt; there is 4 values different than "other" if "Field1", so, I should select nothing in "Field1"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I &lt;STRONG&gt;have &lt;/STRONG&gt;is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2011-07-25_170619.png" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/6106_2011-07-25_170619.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A value is selected in "Field1", and it's wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suppose that the "&lt;EM&gt;clear all&lt;/EM&gt;" is not taken into account when my formula "&lt;EM&gt;if(count(distinct if(Field1 &amp;lt;&amp;gt; 'other', Field1)) = 1, only(if(Field1 &amp;lt;&amp;gt; 'other', Field1)))&lt;/EM&gt;" is calculated, whereas the "clear all" is the very first action.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with QV 9 SR7 and QV 10 SR2.&lt;/P&gt;&lt;P&gt;Wich version do you use ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2011 15:20:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-actions-quot-on-activate-quot/m-p/303056#M112138</guid>
      <dc:creator />
      <dc:date>2011-07-25T15:20:35Z</dc:date>
    </item>
  </channel>
</rss>

