<?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 common customers between two years in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/common-customers-between-two-years/m-p/2412341#M94729</link>
    <description>&lt;P&gt;i have period filter , if we&amp;nbsp; have selected Period=YTD, , need to common customers present&amp;nbsp; both current year YTD&amp;nbsp;(from 01-01-2024 to&amp;nbsp;01-29-2024 ) -Previous Year YTD(from 01-01-2023 to&amp;nbsp;01-29-2023 ).&lt;/P&gt;
&lt;P&gt;by default sheet is in YTD,&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i have used below formula, but it was giving 0,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Count(distinct {1&amp;lt;PYTD={1}, CYTD={1}, delv_qty={"&amp;gt;0"}&amp;gt;} sold_to_desc).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;when i take single either pytd or cytd , it is giving count of customers&amp;nbsp; of the year&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Count(distinct {1&amp;lt;CYTD={1},delv_qty={"&amp;gt;0"}&amp;gt;} sold_to_desc)&lt;/P&gt;
&lt;P&gt;while taking&amp;nbsp; common customers in both years giving me 0,, but actualy have common customers please let me know how to resolve that&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 21:05:42 GMT</pubDate>
    <dc:creator>Swathi</dc:creator>
    <dc:date>2024-11-15T21:05:42Z</dc:date>
    <item>
      <title>common customers between two years</title>
      <link>https://community.qlik.com/t5/App-Development/common-customers-between-two-years/m-p/2412341#M94729</link>
      <description>&lt;P&gt;i have period filter , if we&amp;nbsp; have selected Period=YTD, , need to common customers present&amp;nbsp; both current year YTD&amp;nbsp;(from 01-01-2024 to&amp;nbsp;01-29-2024 ) -Previous Year YTD(from 01-01-2023 to&amp;nbsp;01-29-2023 ).&lt;/P&gt;
&lt;P&gt;by default sheet is in YTD,&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i have used below formula, but it was giving 0,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Count(distinct {1&amp;lt;PYTD={1}, CYTD={1}, delv_qty={"&amp;gt;0"}&amp;gt;} sold_to_desc).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;when i take single either pytd or cytd , it is giving count of customers&amp;nbsp; of the year&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Count(distinct {1&amp;lt;CYTD={1},delv_qty={"&amp;gt;0"}&amp;gt;} sold_to_desc)&lt;/P&gt;
&lt;P&gt;while taking&amp;nbsp; common customers in both years giving me 0,, but actualy have common customers please let me know how to resolve that&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:05:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/common-customers-between-two-years/m-p/2412341#M94729</guid>
      <dc:creator>Swathi</dc:creator>
      <dc:date>2024-11-15T21:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: common customers between two years</title>
      <link>https://community.qlik.com/t5/App-Development/common-customers-between-two-years/m-p/2426229#M96163</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Intersection.JPG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/161162iC5EE3F7017A588A4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Intersection.JPG" alt="Intersection.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Separate the CYTD and PYTD, use P() along with intersection (*) operator.&lt;/P&gt;
&lt;P&gt;Count( {&amp;lt;Sold_to_Desc = P({&amp;lt;CYTD={1},Delv_Qty={"&amp;gt;0"}&amp;gt;})&amp;gt; * &amp;lt; Sold_to_Desc = P({&amp;lt;PYTD={1},Delv_Qty={"&amp;gt;0"}&amp;gt;})&amp;gt; } distinct Sold_to_Desc)&lt;/P&gt;</description>
      <pubDate>Sun, 03 Mar 2024 10:19:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/common-customers-between-two-years/m-p/2426229#M96163</guid>
      <dc:creator>Dataintellinalytics</dc:creator>
      <dc:date>2024-03-03T10:19:31Z</dc:date>
    </item>
  </channel>
</rss>

