<?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 Customers without purchases in &amp;gt;6 months in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customers-without-purchases-in-gt-6-months/m-p/2179746#M50703</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please assist? So i have simplified data as below, a sales table showing the customer_id's and dates when they have ordered from us. I would like to output a table (table 2 below) showing the customers who haven't bought in the preceding 6 months, &lt;STRONG&gt;accumulative tho.&lt;/STRONG&gt; So Customer C only purchased in Jan, so in Aug he hasn't purchased in the last 6 months and gets added to the "lost" customer count in Aug, Sep, Oct &amp;amp; Nov. but he orders again in Dec so he is no longer a "lost" customer.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanking you in advance for your assistance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Nov 2021 06:59:51 GMT</pubDate>
    <dc:creator>SammyNed</dc:creator>
    <dc:date>2021-11-09T06:59:51Z</dc:date>
    <item>
      <title>Customers without purchases in &gt;6 months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customers-without-purchases-in-gt-6-months/m-p/2179746#M50703</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please assist? So i have simplified data as below, a sales table showing the customer_id's and dates when they have ordered from us. I would like to output a table (table 2 below) showing the customers who haven't bought in the preceding 6 months, &lt;STRONG&gt;accumulative tho.&lt;/STRONG&gt; So Customer C only purchased in Jan, so in Aug he hasn't purchased in the last 6 months and gets added to the "lost" customer count in Aug, Sep, Oct &amp;amp; Nov. but he orders again in Dec so he is no longer a "lost" customer.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanking you in advance for your assistance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 06:59:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customers-without-purchases-in-gt-6-months/m-p/2179746#M50703</guid>
      <dc:creator>SammyNed</dc:creator>
      <dc:date>2021-11-09T06:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Customers without purchases in &gt;6 months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customers-without-purchases-in-gt-6-months/m-p/2180001#M50716</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="312920" data-lia-user-login="SammyNed" class="lia-mention lia-mention-user"&gt;SammyNed&lt;/a&gt; , with help of the date table, find rolling 6-month sales or the count &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;example&lt;/P&gt;
&lt;P&gt;Rolling 6 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date ],MAX('Date'[Date ]),-6,MONTH))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lost customer =&lt;/P&gt;
&lt;P&gt;Countx(Values(Customer[Customer]), if(isblank([Rolling 6 ]), [Customer], blank()) )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;refer&lt;/P&gt;
&lt;P&gt;Customer Retention Part 5: LTD Vs Period Retention&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-5-LTD-and-PeriodYoY-Retention-is-only/ba-p/2114497" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-5-LTD-and-PeriodYoY-Retention-is-only/ba-p/2114497&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Customer Retention Part 2: Period over Period Retention :&lt;A href="https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-2-Period-over-Period-Retention/ba-p/1377458" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-2-Period-over-Period-Retention/ba-p/1377458&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 08:56:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customers-without-purchases-in-gt-6-months/m-p/2180001#M50716</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-11-09T08:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Customers without purchases in &gt;6 months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customers-without-purchases-in-gt-6-months/m-p/2180854#M50762</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="312920" data-lia-user-login="SammyNed" class="lia-mention lia-mention-user"&gt;SammyNed&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a measure to count the lost customers.&lt;/P&gt;
&lt;P&gt;It gets a list of customers in the last 6 months, a list of customers before the last 6 months, then sees who is in the 2nd list and not the 1st.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Lost Customers = 
VAR _CurrentDate = MAX('Date'[Date])
VAR _6MonthsAgo = EOMONTH(_CurrentDate, -6)
VAR _Last6MonthCustomers =
CALCULATETABLE(
    VALUES(Sales[Customer_ID]),
    DATESINPERIOD('Date'[Date], _CurrentDate, -6, MONTH)
)
VAR _BeforeLast6MonthCustomers = 
CALCULATETABLE(
    VALUES(Sales[Customer_ID]),
    REMOVEFILTERS('Date'[Date]),
    'Date'[Date] &amp;lt;= _6MonthsAgo
)
VAR _LostCustomers = EXCEPT(_BeforeLast6MonthCustomers, _Last6MonthCustomers)
RETURN
    COUNTROWS(_LostCustomers)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 09 Nov 2021 15:45:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customers-without-purchases-in-gt-6-months/m-p/2180854#M50762</guid>
      <dc:creator>PaulOlding</dc:creator>
      <dc:date>2021-11-09T15:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Customers without purchases in &gt;6 months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customers-without-purchases-in-gt-6-months/m-p/2183265#M50854</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="150936" data-lia-user-login="PaulOlding" class="lia-mention lia-mention-user"&gt;PaulOlding&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This solution works for what i need.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 14:52:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customers-without-purchases-in-gt-6-months/m-p/2183265#M50854</guid>
      <dc:creator>SammyNed</dc:creator>
      <dc:date>2021-11-10T14:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Customers without purchases in &gt;6 months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customers-without-purchases-in-gt-6-months/m-p/3031850#M103658</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="150936" data-lia-user-login="PaulOlding" class="lia-mention lia-mention-user"&gt;PaulOlding&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank for the nice Solution. It's working really fine.&lt;/P&gt;&lt;P&gt;Now i'working with the measure and if i dont put it into the context of a customer, for example i put the Lost Customer in a card visual, i'll get i other number like in a Table in Context with the Customer Number.&lt;/P&gt;&lt;P&gt;You have an idea, why?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 15:55:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customers-without-purchases-in-gt-6-months/m-p/3031850#M103658</guid>
      <dc:creator>Power-CJ</dc:creator>
      <dc:date>2023-01-19T15:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Customers without purchases in &gt;6 months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customers-without-purchases-in-gt-6-months/m-p/3375781#M127116</link>
      <description>&lt;P&gt;Thanks Team. It's what i'm looking for. Thanks very much&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 07:23:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customers-without-purchases-in-gt-6-months/m-p/3375781#M127116</guid>
      <dc:creator>CheanSereyvatan</dc:creator>
      <dc:date>2023-08-11T07:23:51Z</dc:date>
    </item>
  </channel>
</rss>

