<?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: Hard coding multiple additional filters into a chart/text box in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Hard-coding-multiple-additional-filters-into-a-chart-text-box/m-p/1052621#M938831</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT {&amp;lt;Type = {'Current'}, Year = {2016}&amp;gt;} Names)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where Year is a field calculated in the script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Year(Date) as Year&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Feb 2016 21:35:36 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-02-04T21:35:36Z</dc:date>
    <item>
      <title>Hard coding multiple additional filters into a chart/text box</title>
      <link>https://community.qlik.com/t5/QlikView/Hard-coding-multiple-additional-filters-into-a-chart-text-box/m-p/1052620#M938829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a previous discussion where I have been properly informed how to add a filter inside of an expression using something like the below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Original question - I have a chart that displays the number of Yes/No results - the dimension is the field [Yes/No] and the expression is a simple "Count(Distinct [Names])". I want to add an additional criteria to the chart so that no matter what the Current Selections are at the time, the chart will always include ONLY those [Names] where they are of "Type = Current" - something similar to a WHERE command.&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Solution was to use " &lt;STRONG&gt;Count(DISTINCT {&amp;lt;Type = {'Current'}&amp;gt;} Names)&lt;/STRONG&gt; "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My next question is, how do I combine multiple filters into the same expression, specifically using a wildcard function of some type. For instance I am trying to use the above example but now only looking for answers where the DATE field is in 2016. I have tried adding a WildMatch or even a LIKE command but cannot get anything other than an "Error in Expression"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried something like the below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;Count(DISTINCT {&amp;lt;Type = {'Current'}&amp;gt;} {&amp;lt;Date like {'2016'}&amp;gt;} Names) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;or &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;Count(DISTINCT {&amp;lt;Type = {'Current'}&amp;gt;} {&amp;lt;WildMatch(Date, *2016*)&amp;gt;} Names) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;but nothing works. Any ideas?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 20:06:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hard-coding-multiple-additional-filters-into-a-chart-text-box/m-p/1052620#M938829</guid>
      <dc:creator>dawgfather</dc:creator>
      <dc:date>2016-02-04T20:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Hard coding multiple additional filters into a chart/text box</title>
      <link>https://community.qlik.com/t5/QlikView/Hard-coding-multiple-additional-filters-into-a-chart-text-box/m-p/1052621#M938831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT {&amp;lt;Type = {'Current'}, Year = {2016}&amp;gt;} Names)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where Year is a field calculated in the script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Year(Date) as Year&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 21:35:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hard-coding-multiple-additional-filters-into-a-chart-text-box/m-p/1052621#M938831</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-04T21:35:36Z</dc:date>
    </item>
  </channel>
</rss>

