<?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 Show or Hide Panel on condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Show-or-Hide-Panel-on-condition/m-p/554748#M1148938</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI I want to be able to show or hide a text box on a ListBox Condition.&amp;nbsp; If one item is selected or if there are no items in the listbox then I need to hide a text box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My 'Layout' condition is :&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count(DISTINCT [Test Group])&amp;lt;&amp;gt;1&lt;/P&gt;&lt;P&gt;or COUNT(DISTINCT [Test Group])&amp;gt;0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works when I test on one condition but not when I try and do both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jul 2013 09:16:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-07-09T09:16:03Z</dc:date>
    <item>
      <title>Show or Hide Panel on condition</title>
      <link>https://community.qlik.com/t5/QlikView/Show-or-Hide-Panel-on-condition/m-p/554748#M1148938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI I want to be able to show or hide a text box on a ListBox Condition.&amp;nbsp; If one item is selected or if there are no items in the listbox then I need to hide a text box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My 'Layout' condition is :&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count(DISTINCT [Test Group])&amp;lt;&amp;gt;1&lt;/P&gt;&lt;P&gt;or COUNT(DISTINCT [Test Group])&amp;gt;0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works when I test on one condition but not when I try and do both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 09:16:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-or-Hide-Panel-on-condition/m-p/554748#M1148938</guid>
      <dc:creator />
      <dc:date>2013-07-09T09:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Show or Hide Panel on condition</title>
      <link>https://community.qlik.com/t5/QlikView/Show-or-Hide-Panel-on-condition/m-p/554749#M1148939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, if you combine the two with an OR the result will always be true. &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;count(DISTINCT [Test Group])&amp;lt;&amp;gt;1&lt;/SPAN&gt;: 0 is not 1 so 0 returns true&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;or COUNT(DISTINCT [Test Group])&amp;gt;0&lt;/SPAN&gt;: 1 is larger than zero so 1 return true&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Anything larger than 1 will return true for both conditions so also always returns true.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I think you want is &lt;EM&gt;if(&lt;EM&gt;getselectedcount([Test Group])&lt;/EM&gt; &amp;gt; 1, 1, 0). &lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 10:08:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-or-Hide-Panel-on-condition/m-p/554749#M1148939</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-07-09T10:08:48Z</dc:date>
    </item>
  </channel>
</rss>

