<?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 use Exclude to filter out in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/use-Exclude-to-filter-out/m-p/1979678#M80860</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Gabbar_0-1662969533870.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/88875iD51901DE9953C053/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Gabbar_0-1662969533870.png" alt="Gabbar_0-1662969533870.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In this chart i am counting distinct ref_id, But i want that if a reference Id has been counted then it should not be counted again in any upcoming year. The equation of this chart is&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Count({&amp;lt;&lt;BR /&gt;DateType={'REf_Id Created On'}&lt;BR /&gt;&amp;gt;}distinct REf_Id )&lt;/P&gt;
&lt;P&gt;I tried these equation to sort out&amp;nbsp;&amp;nbsp;&lt;BR /&gt;Count({&amp;lt;&lt;BR /&gt;DateType={'REf_Id Created On'},REf_Id =e({&amp;lt;DateType={'REf_Id Created On'},DateKey={"&amp;lt;=num(addyears(Max(DateKey),-1))"}&amp;gt;})&lt;BR /&gt;&amp;gt;}distinct REf_Id )&lt;/P&gt;
&lt;P&gt;and this&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Count({&amp;lt;&lt;BR /&gt;DateType={'REf_Id Created On'},REf_Id =e({&amp;lt;DateType={'REf_Id Created On'},DateKey={"&amp;lt;=num(addyears(Max(DateKey),-1))"}&amp;gt;}REf_Id )&lt;BR /&gt;&amp;gt;}distinct REf_Id )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The graph remained same.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please Guide.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Sep 2022 08:13:19 GMT</pubDate>
    <dc:creator>Gabbar</dc:creator>
    <dc:date>2022-09-12T08:13:19Z</dc:date>
    <item>
      <title>use Exclude to filter out</title>
      <link>https://community.qlik.com/t5/App-Development/use-Exclude-to-filter-out/m-p/1979678#M80860</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Gabbar_0-1662969533870.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/88875iD51901DE9953C053/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Gabbar_0-1662969533870.png" alt="Gabbar_0-1662969533870.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In this chart i am counting distinct ref_id, But i want that if a reference Id has been counted then it should not be counted again in any upcoming year. The equation of this chart is&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Count({&amp;lt;&lt;BR /&gt;DateType={'REf_Id Created On'}&lt;BR /&gt;&amp;gt;}distinct REf_Id )&lt;/P&gt;
&lt;P&gt;I tried these equation to sort out&amp;nbsp;&amp;nbsp;&lt;BR /&gt;Count({&amp;lt;&lt;BR /&gt;DateType={'REf_Id Created On'},REf_Id =e({&amp;lt;DateType={'REf_Id Created On'},DateKey={"&amp;lt;=num(addyears(Max(DateKey),-1))"}&amp;gt;})&lt;BR /&gt;&amp;gt;}distinct REf_Id )&lt;/P&gt;
&lt;P&gt;and this&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Count({&amp;lt;&lt;BR /&gt;DateType={'REf_Id Created On'},REf_Id =e({&amp;lt;DateType={'REf_Id Created On'},DateKey={"&amp;lt;=num(addyears(Max(DateKey),-1))"}&amp;gt;}REf_Id )&lt;BR /&gt;&amp;gt;}distinct REf_Id )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The graph remained same.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please Guide.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 08:13:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/use-Exclude-to-filter-out/m-p/1979678#M80860</guid>
      <dc:creator>Gabbar</dc:creator>
      <dc:date>2022-09-12T08:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: use Exclude to filter out</title>
      <link>https://community.qlik.com/t5/App-Development/use-Exclude-to-filter-out/m-p/1983566#M81152</link>
      <description>&lt;P&gt;I believe you need to solve this in loadscript, because set expressions only evaluate once per table/chart - not per dimension. I would probably try to create an additional facts table in the data model, where ref_id is only used for the first date occasion it exists on.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 11:03:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/use-Exclude-to-filter-out/m-p/1983566#M81152</guid>
      <dc:creator>henrikalmen</dc:creator>
      <dc:date>2022-09-21T11:03:23Z</dc:date>
    </item>
  </channel>
</rss>

