<?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 Set expression not filtering data in Count in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-expression-not-filtering-data-in-Count/m-p/1891963#M1217333</link>
    <description>&lt;P&gt;1. I try to do simple count if&amp;nbsp;&lt;STRONG&gt;text_date&amp;nbsp;&lt;/STRONG&gt;(text format) is the same as a variable&amp;nbsp;&lt;STRONG&gt;Max_Date&amp;nbsp;&lt;/STRONG&gt;(Date format). When I convert them both with num() in the table and I compare them than it gives correct results. But when I want to have a KPI with count based on this condition it's not filtering at all:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=Count({&amp;lt;"=num(date(date#(&lt;STRONG&gt;text_date&lt;/STRONG&gt;,'DD/MM/YYYY')))" = {"=Num(&lt;STRONG&gt;Max_Date&lt;/STRONG&gt;)"}&amp;gt;}distinct [mvp])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Max_Date&amp;nbsp;&lt;/STRONG&gt;formula:&lt;/P&gt;
&lt;P&gt;=Date(Max(num(date(date#(&lt;STRONG&gt;text_date&lt;/STRONG&gt;,'DD/MM/YYYY')))))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Additionally if I change&amp;nbsp;&lt;STRONG&gt;text_date&amp;nbsp;&lt;/STRONG&gt;in filters I get different value for&amp;nbsp;&lt;STRONG&gt;Max_Date.&amp;nbsp;&lt;/STRONG&gt;I've read that you have to put {1} in the formula but I don't know where.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Feb 2022 13:17:11 GMT</pubDate>
    <dc:creator>matKa</dc:creator>
    <dc:date>2022-02-11T13:17:11Z</dc:date>
    <item>
      <title>Set expression not filtering data in Count</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-not-filtering-data-in-Count/m-p/1891963#M1217333</link>
      <description>&lt;P&gt;1. I try to do simple count if&amp;nbsp;&lt;STRONG&gt;text_date&amp;nbsp;&lt;/STRONG&gt;(text format) is the same as a variable&amp;nbsp;&lt;STRONG&gt;Max_Date&amp;nbsp;&lt;/STRONG&gt;(Date format). When I convert them both with num() in the table and I compare them than it gives correct results. But when I want to have a KPI with count based on this condition it's not filtering at all:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=Count({&amp;lt;"=num(date(date#(&lt;STRONG&gt;text_date&lt;/STRONG&gt;,'DD/MM/YYYY')))" = {"=Num(&lt;STRONG&gt;Max_Date&lt;/STRONG&gt;)"}&amp;gt;}distinct [mvp])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Max_Date&amp;nbsp;&lt;/STRONG&gt;formula:&lt;/P&gt;
&lt;P&gt;=Date(Max(num(date(date#(&lt;STRONG&gt;text_date&lt;/STRONG&gt;,'DD/MM/YYYY')))))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Additionally if I change&amp;nbsp;&lt;STRONG&gt;text_date&amp;nbsp;&lt;/STRONG&gt;in filters I get different value for&amp;nbsp;&lt;STRONG&gt;Max_Date.&amp;nbsp;&lt;/STRONG&gt;I've read that you have to put {1} in the formula but I don't know where.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 13:17:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-not-filtering-data-in-Count/m-p/1891963#M1217333</guid>
      <dc:creator>matKa</dc:creator>
      <dc:date>2022-02-11T13:17:11Z</dc:date>
    </item>
  </channel>
</rss>

