<?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: Enable chart condition in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Enable-chart-condition/m-p/1830911#M68486</link>
    <description>&lt;P&gt;Yes, it looks like the auto sorting of this function changes if selection is not a possible value.&amp;nbsp; So you can either do 3 matches for each value or this should work:&lt;/P&gt;&lt;P&gt;=GetSelectedCount(&lt;SPAN&gt;[Location No.]&lt;/SPAN&gt;) = 3 AND count(distinct {&amp;lt;&lt;SPAN&gt;[Location No.]&lt;/SPAN&gt;= P(&lt;SPAN&gt;[Location No.]&lt;/SPAN&gt;) * {&lt;SPAN&gt;'ANKM9', 'ANKMR', 'ANKMRL'&amp;nbsp;&lt;/SPAN&gt;} &amp;gt;} &lt;SPAN&gt;[Location No.]&lt;/SPAN&gt;) = 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which is saying, user has selected exactly 3 locations AND the count of locations available in their selections intersected with those specific 3 = 3.&amp;nbsp; Should logically be accurate.&lt;/P&gt;</description>
    <pubDate>Tue, 24 Aug 2021 19:14:59 GMT</pubDate>
    <dc:creator>stevejoyce</dc:creator>
    <dc:date>2021-08-24T19:14:59Z</dc:date>
    <item>
      <title>Enable chart condition</title>
      <link>https://community.qlik.com/t5/App-Development/Enable-chart-condition/m-p/1830856#M68477</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I want to enable a button when I have a bookmark for 3 values applied.&lt;/P&gt;&lt;P&gt;My Field is "Location" and the values I have selected are "ANKM9","ANKMR","ANKMRL" for the button to appear.&lt;/P&gt;&lt;P&gt;I thought this would work:&amp;nbsp;&lt;/P&gt;&lt;P&gt;If([Location No.]='ANKM9'and [Location No.]='ANKMR'and [Location No.]='ANKMRL',1,0)&lt;/P&gt;&lt;P&gt;But it doesn't.&lt;/P&gt;&lt;P&gt;Any ideas how I can solve this problem?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 15:05:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Enable-chart-condition/m-p/1830856#M68477</guid>
      <dc:creator>AnnaEKinch</dc:creator>
      <dc:date>2021-08-24T15:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Enable chart condition</title>
      <link>https://community.qlik.com/t5/App-Development/Enable-chart-condition/m-p/1830862#M68479</link>
      <description>&lt;P&gt;Is it just those specific 3 values or any 3?&lt;/P&gt;&lt;P&gt;Any 3 would be GetSelectedCount(&lt;SPAN&gt;[Location No.]&lt;/SPAN&gt;) = 3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Those specific 3 and only those 3, how about... GetFieldSelections(&lt;SPAN&gt;[Location No.]&lt;/SPAN&gt;) = 'ANKM9, ANKMR, ANKMRL' ... which uses default sorting of alpha of your field selections.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 15:22:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Enable-chart-condition/m-p/1830862#M68479</guid>
      <dc:creator>stevejoyce</dc:creator>
      <dc:date>2021-08-24T15:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Enable chart condition</title>
      <link>https://community.qlik.com/t5/App-Development/Enable-chart-condition/m-p/1830898#M68483</link>
      <description>&lt;P&gt;Thank you! Yes, the three specific fields and it worked perfectly!&lt;/P&gt;&lt;P&gt;Now my problem is when I add another field selection, and not all the 3 locations are included, the button is disabled.&lt;/P&gt;&lt;P&gt;I have tried adding the action to lock the selections but this didn't work either. Any ideas?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 18:53:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Enable-chart-condition/m-p/1830898#M68483</guid>
      <dc:creator>AnnaEKinch</dc:creator>
      <dc:date>2021-08-24T18:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Enable chart condition</title>
      <link>https://community.qlik.com/t5/App-Development/Enable-chart-condition/m-p/1830911#M68486</link>
      <description>&lt;P&gt;Yes, it looks like the auto sorting of this function changes if selection is not a possible value.&amp;nbsp; So you can either do 3 matches for each value or this should work:&lt;/P&gt;&lt;P&gt;=GetSelectedCount(&lt;SPAN&gt;[Location No.]&lt;/SPAN&gt;) = 3 AND count(distinct {&amp;lt;&lt;SPAN&gt;[Location No.]&lt;/SPAN&gt;= P(&lt;SPAN&gt;[Location No.]&lt;/SPAN&gt;) * {&lt;SPAN&gt;'ANKM9', 'ANKMR', 'ANKMRL'&amp;nbsp;&lt;/SPAN&gt;} &amp;gt;} &lt;SPAN&gt;[Location No.]&lt;/SPAN&gt;) = 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which is saying, user has selected exactly 3 locations AND the count of locations available in their selections intersected with those specific 3 = 3.&amp;nbsp; Should logically be accurate.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 19:14:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Enable-chart-condition/m-p/1830911#M68486</guid>
      <dc:creator>stevejoyce</dc:creator>
      <dc:date>2021-08-24T19:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Enable chart condition</title>
      <link>https://community.qlik.com/t5/App-Development/Enable-chart-condition/m-p/1830916#M68488</link>
      <description>&lt;P&gt;Perfect! This worked:&lt;/P&gt;&lt;P&gt;=GetFieldSelections([Location No.]) = 'ANKM9, ANKMR, ANKMRL' or GetFieldSelections([Location No.]) = 'ANKMR, ANKM9, ANKMRL'or GetFieldSelections([Location No.]) = 'ANKMRL, ANKM9, ANKMR'&lt;/P&gt;&lt;P&gt;But unfornutaely not your other suggestion. Thanks so much.&lt;/P&gt;&lt;P&gt;Ok, hopefully last question, I need the similar function for the locations&lt;/P&gt;&lt;P&gt;'ANKM4, MEKA100, MEKB1, MEKB10, MEKB50, MEKB100, MEKC1' This does't work. If I instead do this :&lt;/P&gt;&lt;P&gt;'ANKM4 MEKA100 MEKB1 MEKB10 MEKB50 MEKB100 MEKC1' Then it gets enabled only if I also select&amp;nbsp; MEKC10. But I do not want MEKC10.&lt;/P&gt;&lt;P&gt;What do you think?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 19:37:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Enable-chart-condition/m-p/1830916#M68488</guid>
      <dc:creator>AnnaEKinch</dc:creator>
      <dc:date>2021-08-24T19:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Enable chart condition</title>
      <link>https://community.qlik.com/t5/App-Development/Enable-chart-condition/m-p/1830920#M68489</link>
      <description>&lt;P&gt;&lt;SPAN&gt;What if you add this ignore field selections, i definitely think this should work and would make it simpler going forward&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=GetSelectedCount(&lt;/SPAN&gt;&lt;SPAN&gt;[Location No.]&lt;/SPAN&gt;&lt;SPAN&gt;) = 3 AND count(distinct {1&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;[Location No.]&lt;/SPAN&gt;&lt;SPAN&gt;= P(&lt;/SPAN&gt;&lt;SPAN&gt;[Location No.]&lt;/SPAN&gt;&lt;SPAN&gt;) * {&lt;/SPAN&gt;&lt;SPAN&gt;'ANKM9', 'ANKMR', 'ANKMRL'&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;} &amp;gt;}&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;[Location No.]&lt;/SPAN&gt;&lt;SPAN&gt;) = 3.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you have to go down the route of GetFieldSelections, then i would instead do below.&amp;nbsp; This should be fine extending to your other scenario.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=match('ANKM9', $(=chr(39) &amp;amp; GetFieldSelections([Location No.], chr(39) &amp;amp; ', ' &amp;amp; chr(39)) &amp;amp; chr(39))) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;AND&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;match('ANKMR', $(=chr(39) &amp;amp; GetFieldSelections([Location No.], chr(39) &amp;amp; ', ' &amp;amp; chr(39)) &amp;amp; chr(39)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;AND&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;match('ANKMRL', $(=chr(39) &amp;amp; GetFieldSelections([Location No.], chr(39) &amp;amp; ', ' &amp;amp; chr(39)) &amp;amp; chr(39)))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 19:47:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Enable-chart-condition/m-p/1830920#M68489</guid>
      <dc:creator>stevejoyce</dc:creator>
      <dc:date>2021-08-24T19:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: Enable chart condition</title>
      <link>https://community.qlik.com/t5/App-Development/Enable-chart-condition/m-p/1830924#M68491</link>
      <description>&lt;P&gt;You are so good!&lt;/P&gt;&lt;P&gt;The first alternative still doesn't work.&lt;/P&gt;&lt;P&gt;The second one is so much easier than making multiple combinations of selection-orders. This works great for my three locations, but still doesn't work on my seven locations. Hmmm.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 20:06:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Enable-chart-condition/m-p/1830924#M68491</guid>
      <dc:creator>AnnaEKinch</dc:creator>
      <dc:date>2021-08-24T20:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Enable chart condition</title>
      <link>https://community.qlik.com/t5/App-Development/Enable-chart-condition/m-p/1830934#M68496</link>
      <description>&lt;P&gt;Hm i can't think of anything.&amp;nbsp; Can you send me the list of your Locations and your calculation?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 21:10:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Enable-chart-condition/m-p/1830934#M68496</guid>
      <dc:creator>stevejoyce</dc:creator>
      <dc:date>2021-08-24T21:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Enable chart condition</title>
      <link>https://community.qlik.com/t5/App-Development/Enable-chart-condition/m-p/1831076#M68513</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I made an Inline table grouping the locations. Then so&amp;nbsp; much easier with just one field value per group to consider each time!&lt;/P&gt;&lt;P&gt;Many thanks again for wonderful help!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 10:48:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Enable-chart-condition/m-p/1831076#M68513</guid>
      <dc:creator>AnnaEKinch</dc:creator>
      <dc:date>2021-08-25T10:48:42Z</dc:date>
    </item>
  </channel>
</rss>

