<?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: Discrepancies using filters - Set analysis formula. in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Discrepancies-using-filters-Set-analysis-formula/m-p/2459931#M13780</link>
    <description>&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jun 2024 14:11:26 GMT</pubDate>
    <dc:creator>AN2024</dc:creator>
    <dc:date>2024-06-06T14:11:26Z</dc:date>
    <item>
      <title>Discrepancies using filters - Set analysis formula.</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Discrepancies-using-filters-Set-analysis-formula/m-p/2458472#M13761</link>
      <description>&lt;P&gt;I have the follow formula to bring the new customer (clients who bought products in 2024 but didn´t in past years) without anyfilters it works correctly, however when I applied sales area filter and select for example xyz sales area it shows some customer as new one but it is wrong because some customer bought product in the sales area ZZZ in 2022 but in XYZ in 2024. In conclusion, I need to show the new customer based in the field "CUSTOMER" that´s mean if I select XYZ filter or whatever this kind of filter doesn´t need to affect the result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Count({&amp;lt;CUSTOMER=e({&amp;lt;Year_Calday={"&amp;gt;=$(=FirstSortedValue(Year_Calday, Year_Calday))&amp;lt;=$(=Year(Today())-1)"}&amp;gt;})&amp;gt;*&amp;lt;CUSTOMER={"=(Sum(Sales)&amp;gt;0)"}&amp;gt;} distinct CUSTOMER).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jun 2024 04:18:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Discrepancies-using-filters-Set-analysis-formula/m-p/2458472#M13761</guid>
      <dc:creator>AN2024</dc:creator>
      <dc:date>2024-06-02T04:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Discrepancies using filters - Set analysis formula.</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Discrepancies-using-filters-Set-analysis-formula/m-p/2458473#M13762</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/298076"&gt;@AN2024&lt;/a&gt;,&lt;BR /&gt;Check this:&lt;BR /&gt;&lt;BR /&gt;Count(&lt;BR /&gt;{&lt;BR /&gt;&amp;lt;Year_Calday={"2024"}, &lt;BR /&gt;CUSTOMER = e(&lt;BR /&gt;{&amp;lt;Year_Calday={"&amp;gt;=$(=FirstSortedValue(Year_Calday, Year_Calday))&amp;lt;=$(=Year(Today())-1)"&amp;gt;}, &lt;BR /&gt;SALES_AREA=&amp;gt;}&lt;BR /&gt;), &lt;BR /&gt;SALES_AREA= &amp;gt;&lt;BR /&gt;} &lt;BR /&gt;DISTINCT CUSTOMER&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;******Hope this resolve your issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the issue is solved please mark the answer with Accept as Solution &amp;amp; like it.********&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jun 2024 04:47:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Discrepancies-using-filters-Set-analysis-formula/m-p/2458473#M13762</guid>
      <dc:creator>TauseefKhan</dc:creator>
      <dc:date>2024-06-02T04:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Discrepancies using filters - Set analysis formula.</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Discrepancies-using-filters-Set-analysis-formula/m-p/2458527#M13763</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/149129"&gt;@TauseefKhan&lt;/a&gt;&amp;nbsp;Thank you for your help, below you can see the error showed in Qlik Sense.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AN2024_0-1717341930226.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/167247iE093C029ECE8048F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AN2024_0-1717341930226.png" alt="AN2024_0-1717341930226.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jun 2024 15:46:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Discrepancies-using-filters-Set-analysis-formula/m-p/2458527#M13763</guid>
      <dc:creator>AN2024</dc:creator>
      <dc:date>2024-06-02T15:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Discrepancies using filters - Set analysis formula.</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Discrepancies-using-filters-Set-analysis-formula/m-p/2458531#M13764</link>
      <description>&lt;P&gt;&lt;BR /&gt;Check this one :&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Count(&lt;BR /&gt;{&amp;lt;&lt;BR /&gt;Year_Calday = {"2024"},&lt;BR /&gt;CUSTOMER = e(&lt;BR /&gt;{&amp;lt;&lt;BR /&gt;Year_Calday = {"&amp;gt;=$(=FirstSortedValue(Year_Calday, Year_Calday))&amp;lt;=2023"},&lt;BR /&gt;SALES_AREA =&amp;gt; // Ignore sales area selection for past years&lt;BR /&gt;&amp;gt;}&lt;BR /&gt;)&lt;BR /&gt;&amp;gt;} DISTINCT CUSTOMER&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;Count(&lt;BR /&gt;{&amp;lt; &lt;BR /&gt;Year_Calday = {"2024"}, &lt;BR /&gt;CUSTOMER = e({&amp;lt; &lt;BR /&gt;Year_Calday = {"&amp;gt;=$(=Max(Year_Calday) + 1)&amp;lt;2024"}, &lt;BR /&gt;SALES_AREA = p() // Preserve current selection of SALES_AREA&lt;BR /&gt;&amp;gt;}) &lt;BR /&gt;&amp;gt;} DISTINCT CUSTOMER&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;// Please provide sample data to validate the expression, or use the provided expression as a reference to resolve your issue.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;*****&lt;STRONG&gt;Hope these steps will help you to resolve your issue.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the issue is solved please mark the answer with Accept as Solution &amp;amp; like it.******&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jun 2024 17:05:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Discrepancies-using-filters-Set-analysis-formula/m-p/2458531#M13764</guid>
      <dc:creator>TauseefKhan</dc:creator>
      <dc:date>2024-06-02T17:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Discrepancies using filters - Set analysis formula.</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Discrepancies-using-filters-Set-analysis-formula/m-p/2458539#M13765</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/298076"&gt;@AN2024&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like a syntax error. Try to remove the marked '&amp;gt;' symbol in the screenshot.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vegar_0-1717359334944.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/167248iE91080BCE3AA8D2B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Vegar_0-1717359334944.png" alt="Vegar_0-1717359334944.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jun 2024 20:15:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Discrepancies-using-filters-Set-analysis-formula/m-p/2458539#M13765</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2024-06-02T20:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Discrepancies using filters - Set analysis formula.</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Discrepancies-using-filters-Set-analysis-formula/m-p/2459595#M13775</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/149129"&gt;@TauseefKhan&lt;/a&gt;&amp;nbsp;This is a sample of the result, if I filter for X73 (Sales zone) it counts as new customer because there are not sales for the past year for this customer in the sales zone X73, nevertheless, that is wrong because I need to take in count a new customer only if they bought a product in the current year considering all sales zone and they didn´t buy a product in the past years, for example in this case the customer ID is not a new customer, because it bought a product in the sales zone X71 in 2022.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 240pt;" border="0" width="320" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="80" height="19" style="height: 14.5pt; width: 60pt;"&gt;Sales zone&lt;/TD&gt;
&lt;TD width="80" style="width: 60pt;"&gt;Date&lt;/TD&gt;
&lt;TD width="80" style="width: 60pt;"&gt;Sales&lt;/TD&gt;
&lt;TD width="80" style="width: 60pt;"&gt;CustomerID&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" style="height: 14.5pt;"&gt;X71&lt;/TD&gt;
&lt;TD align="right" class="xl65"&gt;23/03/2022&lt;/TD&gt;
&lt;TD align="right"&gt;3&lt;/TD&gt;
&lt;TD align="right"&gt;13348&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" style="height: 14.5pt;"&gt;X73&lt;/TD&gt;
&lt;TD align="right" class="xl65"&gt;29/05/2024&lt;/TD&gt;
&lt;TD align="right"&gt;1&lt;/TD&gt;
&lt;TD align="right"&gt;13348&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Wed, 05 Jun 2024 18:25:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Discrepancies-using-filters-Set-analysis-formula/m-p/2459595#M13775</guid>
      <dc:creator>AN2024</dc:creator>
      <dc:date>2024-06-05T18:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Discrepancies using filters - Set analysis formula.</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Discrepancies-using-filters-Set-analysis-formula/m-p/2459596#M13776</link>
      <description>&lt;P&gt;Thank you, it brought a result removing the symbol "&amp;gt;" but unfortunately it is wrong as I explained to&amp;nbsp;&lt;A id="inResponseTo_1f1e59fe0e8555_1e6d7" class="lia-link-navigation lia-message-reply-in-response-to" href="https://community.qlik.com/t5/Connectivity-Data-Prep/Discrepancies-using-filters-Set-analysis-formula/m-p/2458531/highlight/true#M13764" target="_blank"&gt;&lt;SPAN class="lia-message-in-response-to-username"&gt;TauseefKhan&lt;/SPAN&gt;&lt;/A&gt;:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;"This is a sample of the result, if I filter for X73 (Sales zone) it counts as new customer because there are not sales for the past year for this customer in the sales zone X73, nevertheless, that is wrong because I need to take in count a new customer only if they bought a product in the current year considering all sales zone and they didn´t buy a product in the past years, for example in this case the customer ID is not a new customer, because it bought a product in the sales zone X71 in 2022."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="0" width="320" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="80" height="19"&gt;Sales zone&lt;/TD&gt;
&lt;TD width="80"&gt;Date&lt;/TD&gt;
&lt;TD width="80"&gt;Sales&lt;/TD&gt;
&lt;TD width="80"&gt;CustomerID&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="19"&gt;X71&lt;/TD&gt;
&lt;TD align="right" class="xl65"&gt;23/03/2022&lt;/TD&gt;
&lt;TD align="right"&gt;3&lt;/TD&gt;
&lt;TD align="right"&gt;13348&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="19"&gt;X73&lt;/TD&gt;
&lt;TD align="right" class="xl65"&gt;29/05/2024&lt;/TD&gt;
&lt;TD align="right"&gt;1&lt;/TD&gt;
&lt;TD align="right"&gt;13348&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Wed, 05 Jun 2024 18:27:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Discrepancies-using-filters-Set-analysis-formula/m-p/2459596#M13776</guid>
      <dc:creator>AN2024</dc:creator>
      <dc:date>2024-06-05T18:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Discrepancies using filters - Set analysis formula.</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Discrepancies-using-filters-Set-analysis-formula/m-p/2459691#M13777</link>
      <description>&lt;P&gt;&lt;BR /&gt;This formula will count distinct customers who made purchases in 2024 but did not make any purchases in previous years, regardless of the SALES_AREA selected.&lt;BR /&gt;&lt;BR /&gt;Count(&lt;BR /&gt;{&lt;BR /&gt;&amp;lt;Year_Calday={"2024"},&lt;BR /&gt;CUSTOMER = e(&lt;BR /&gt;{&amp;lt;Year_Calday={"&amp;lt;=$(=Max(Year_Calday)-1)"},&lt;BR /&gt;SALES_AREA=&amp;gt;}&lt;BR /&gt;),&lt;BR /&gt;SALES_AREA= // This will ignore the SALES_AREA selection&lt;BR /&gt;}&lt;BR /&gt;DISTINCT CUSTOMER&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 03:23:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Discrepancies-using-filters-Set-analysis-formula/m-p/2459691#M13777</guid>
      <dc:creator>TauseefKhan</dc:creator>
      <dc:date>2024-06-06T03:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: Discrepancies using filters - Set analysis formula.</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Discrepancies-using-filters-Set-analysis-formula/m-p/2459931#M13780</link>
      <description>&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 14:11:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Discrepancies-using-filters-Set-analysis-formula/m-p/2459931#M13780</guid>
      <dc:creator>AN2024</dc:creator>
      <dc:date>2024-06-06T14:11:26Z</dc:date>
    </item>
  </channel>
</rss>

