<?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: Legend and Filter in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Legend-and-Filter/m-p/1230652#M517161</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the attached.... there are other ways to do this... but this seemed like an easy way because you only had 2 companies.... could there be more companies? I can give you other options or you can look here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3564"&gt;Customizable Straight Table&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Mar 2017 13:28:07 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-03-17T13:28:07Z</dc:date>
    <item>
      <title>Legend and Filter</title>
      <link>https://community.qlik.com/t5/QlikView/Legend-and-Filter/m-p/1230651#M517160</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 have a Barchart with 6 expressions and showing the legend. I have a listbox 'Company' with two companies (ECO &amp;amp; ESB). &lt;/P&gt;&lt;P&gt;The expressions are :&lt;/P&gt;&lt;P&gt;2* Sum(Budget): total and product&lt;/P&gt;&lt;P&gt;2* Sum(Sales) for Company 1, divided in products and Batch &lt;/P&gt;&lt;P&gt;2* Sum(Sales) for Company 2, divided in products and Batch&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The four sum(sales) are stackt barcharts, the sum(Budgets) are two lines.&lt;/P&gt;&lt;P&gt;The legend shows always&amp;nbsp; the 6 expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I select Company 1, I want to see the expressions belonging to Company 1: the two Budgets and the two Sales.&lt;/P&gt;&lt;P&gt;When I select Company 2, I want to see the expressions belonging to Company 2: the two Budgets and the two Sales&lt;/P&gt;&lt;P&gt;When I select both companies or with no selection I want to see all six.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the script I created two variables: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SET vLegendCompany1='=GetPossibleCount(Company)=1';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SET vLegendCompany2='=GetPossibleCount(Company)=1';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Expression tab I activate conditional with vLegendCompany1 for expressions Company 1, and vLegendCompany2 for expressions Company 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have added four Screen shots with the four possible selections and results and a qvw as testdocument &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only result I got, is that when I select both companies or no companies all four Sales expressions disappear&amp;nbsp; (see: both companies selected.jpg)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried a wildmatch, didn't work. Tried an IF-Statement, didn't work. So I'm at the end of my possibilities and hope that there is someone who has an other solution which works in the Chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in regard&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Court&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2017 11:58:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Legend-and-Filter/m-p/1230651#M517160</guid>
      <dc:creator>pacoli2013</dc:creator>
      <dc:date>2017-03-17T11:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Legend and Filter</title>
      <link>https://community.qlik.com/t5/QlikView/Legend-and-Filter/m-p/1230652#M517161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the attached.... there are other ways to do this... but this seemed like an easy way because you only had 2 companies.... could there be more companies? I can give you other options or you can look here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3564"&gt;Customizable Straight Table&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2017 13:28:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Legend-and-Filter/m-p/1230652#M517161</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-17T13:28:07Z</dc:date>
    </item>
  </channel>
</rss>

