<?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: Conditional Show based on Selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-Show-based-on-Selection/m-p/363669#M1171143</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey u can simply use d following expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetSelectedCount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Client&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)=0,'Mike',&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Client&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Jun 2012 09:33:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-06-22T09:33:32Z</dc:date>
    <item>
      <title>Conditional Show based on Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Show-based-on-Selection/m-p/363665#M1171139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Everyone-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know this is super simple, but for some reason I cannot figure this out.&amp;nbsp; Currently have a straight table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;&lt;STRONG style="color: #ffffff; text-align: -webkit-center; background-color: #6690bc;"&gt;Client&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Metric&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Output&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Joe&lt;/TD&gt;&lt;TD&gt;Running&lt;/TD&gt;&lt;TD&gt;He's super fast&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Mike&lt;/TD&gt;&lt;TD&gt;Running&lt;/TD&gt;&lt;TD&gt;He's super slow, around 10% Slower&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Michelle&lt;/TD&gt;&lt;TD&gt;Swimming&lt;/TD&gt;&lt;TD&gt;Average swimmer&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Joan&lt;/TD&gt;&lt;TD&gt;Biking&lt;/TD&gt;&lt;TD&gt;Average at 10%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;John&lt;/TD&gt;&lt;TD&gt;Running&lt;/TD&gt;&lt;TD&gt;Average at best&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a separate list box called "Client" so they can filter this straight table to the selection.&amp;nbsp; What, I'd like to do is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the user clears all and does not select any client, then just show "Mike" (and it's results)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, then go by the listbox selection(s)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my straight table, for "Client" I have changed to the dimension to a calculated dimension, that looks like this:&lt;/P&gt;&lt;P&gt;=if(GetSelectedCount(Client)&amp;gt;=1,Client,Client='Mike')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the field "Output," since it's straight table (and not a table box), I made that field as an expression using the following:&lt;/P&gt;&lt;P&gt;=Only(Output)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if I "Clear All" under "Client" in the straight table, I get -1 instead of it saying "Mike."&amp;nbsp; The other two fields (Metric and Output) come out correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've literally been racking my brain on this, but for some reason I can't get anything but either -1 or a NULL value instead of just "Mike."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, if I do select a specific "Client" under the listbox, everything comes out correct (in other words, it shows the Client's name).&amp;nbsp; What am I missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2012 22:16:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Show-based-on-Selection/m-p/363665#M1171139</guid>
      <dc:creator />
      <dc:date>2012-06-21T22:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Show based on Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Show-based-on-Selection/m-p/363666#M1171140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post your sample app?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2012 22:46:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Show-based-on-Selection/m-p/363666#M1171140</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-06-21T22:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Show based on Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Show-based-on-Selection/m-p/363667#M1171141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Jason-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you go:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2012 23:03:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Show-based-on-Selection/m-p/363667#M1171141</guid>
      <dc:creator />
      <dc:date>2012-06-21T23:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Show based on Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Show-based-on-Selection/m-p/363668#M1171142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it.&amp;nbsp; INstead of a calculated dimension, just have Client and Metric as normal dimensions, then as your expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF(GetSelectedCount(Client)=0,Only({&amp;lt;Client={Mike}&amp;gt;} Output),Only(Output))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2012 23:47:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Show-based-on-Selection/m-p/363668#M1171142</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-06-21T23:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Show based on Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Show-based-on-Selection/m-p/363669#M1171143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey u can simply use d following expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetSelectedCount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Client&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)=0,'Mike',&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Client&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2012 09:33:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Show-based-on-Selection/m-p/363669#M1171143</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-22T09:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Show based on Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Show-based-on-Selection/m-p/363670#M1171144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much Jason.&amp;nbsp; I knew it was something simple.&amp;nbsp; This works perfectly!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2012 15:26:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Show-based-on-Selection/m-p/363670#M1171144</guid>
      <dc:creator />
      <dc:date>2012-06-22T15:26:06Z</dc:date>
    </item>
  </channel>
</rss>

