<?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: Rolling customers repeat purchase check in current months- DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-customers-repeat-purchase-check-in-current-months-DAX/m-p/2944887#M97377</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="412578" data-lia-user-login="shankarshiva" class="lia-mention lia-mention-user"&gt;shankarshiva&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;Rolling 12 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date],MAX('Date'[Date]),-12,MONTH))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rolling 12 before 12 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date],eomonth(MAX('Date'[Date]),-12) ,-12,MONTH))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lost Customer This Period = Sumx(VALUES(Customer[Customer Id]),if(ISBLANK([Rolling 12) &amp;amp;&amp;amp; not(ISBLANK([Rolling 12 before 12])) , 1,BLANK()))&lt;BR /&gt;New Customer This Period = Sumx(VALUES(Customer[Customer Id]),if(ISBLANK([Rolling 12 before 12]) &amp;amp;&amp;amp; not(ISBLANK([Rolling 12])) , 1,BLANK()))&lt;BR /&gt;Retained Customer This Period = Sumx(VALUES(Customer[Customer Id]),if(not(ISBLANK([Rolling 12])) &amp;amp;&amp;amp; not(ISBLANK([Rolling 12 before 12])) , 1,BLANK()))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Customer Retention with Dynamic Segmentation, New/Lost/Retain Customer Count: &lt;A href="https://www.youtube.com/watch?v=W4EF1f_k6iY" target="_blank" rel="noopener"&gt;https://www.youtube.com/watch?v=W4EF1f_k6iY&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Customer Retention Part 1:&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-1-Month-on-Month-Retention/ba-p/1361529" target="_blank" rel="noopener"&gt;https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-1-Month-on-Month-Retention/ba-p/1361529&lt;/A&gt;&lt;BR /&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" rel="noopener"&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Dec 2022 14:47:48 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2022-12-02T14:47:48Z</dc:date>
    <item>
      <title>Rolling customers repeat purchase check in current months- DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-customers-repeat-purchase-check-in-current-months-DAX/m-p/2944452#M97360</link>
      <description>&lt;P&gt;Hello Experts&lt;/P&gt;&lt;P&gt;I am trying to calculate repeat purchase customer count of rolling 12M customers in current month.&lt;/P&gt;&lt;P&gt;Like if we are in Dec22 then rolling customer 12month will be Dec21 to Nov22, if we are in Nov22 then rolling 12month customer will be Nov21 to Oct22.&lt;/P&gt;&lt;P&gt;I am tying to get this by below DAX but output is coming incorrect.&lt;/P&gt;&lt;P&gt;Need your help please.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Repeat in Current Month of Rolling L12M customers = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Var&lt;/SPAN&gt;&lt;SPAN&gt; _enddate=&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;('Calendar'[Date])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; _startdate=&lt;/SPAN&gt;&lt;SPAN&gt;EOMONTH&lt;/SPAN&gt;&lt;SPAN&gt;(_enddate,-&lt;/SPAN&gt;&lt;SPAN&gt;13&lt;/SPAN&gt;&lt;SPAN&gt;)+&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; _Rolling12MCustomers =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATETABLE&lt;/SPAN&gt;&lt;SPAN&gt;('Secondary Data','Secondary Data'[New Key for Retailer count],&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;all&lt;/SPAN&gt;&lt;SPAN&gt;('Calendar'),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'Calendar'[Date]&amp;gt;=_StartDate&amp;amp;&amp;amp;'Calendar'[Date]&amp;lt;=&lt;/SPAN&gt;&lt;SPAN&gt;EOMONTH&lt;/SPAN&gt;&lt;SPAN&gt;(_enddate,-&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Var&lt;/SPAN&gt;&lt;SPAN&gt; _CurrentMonthSales=&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATETABLE&lt;/SPAN&gt;&lt;SPAN&gt;('Secondary Data','Secondary Data'[New Key for Retailer count],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;all&lt;/SPAN&gt;&lt;SPAN&gt;('Calendar'),&lt;/SPAN&gt;&lt;SPAN&gt;MONTH&lt;/SPAN&gt;&lt;SPAN&gt;('Calendar'[Date])=&lt;/SPAN&gt;&lt;SPAN&gt;MONTH&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;('Calendar'[Date]))&amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;SPAN&gt;YEAR&lt;/SPAN&gt;&lt;SPAN&gt;(('Calendar'[Date])=&lt;/SPAN&gt;&lt;SPAN&gt;YEAR&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;('Calendar'[Date])))))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Var&lt;/SPAN&gt;&lt;SPAN&gt; RepeatCustomers=&lt;/SPAN&gt;&lt;SPAN&gt;INTERSECT&lt;/SPAN&gt;&lt;SPAN&gt;(_CurrentMonthSales,_Rolling12MCustomers)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(RepeatCustomers)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="6614" data-lia-user-login="Greg" class="lia-mention lia-mention-user"&gt;Greg&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="2757" data-lia-user-login="PowerBI" class="lia-mention lia-mention-user"&gt;PowerBI&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="170347" data-lia-user-login="administrator" class="lia-mention lia-mention-user"&gt;administrator&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="24542" data-lia-user-login="PaulDBrown" class="lia-mention lia-mention-user"&gt;PaulDBrown&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="225330" data-lia-user-login="JihwanKim" class="lia-mention lia-mention-user"&gt;JihwanKim&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="262645" data-lia-user-login="Mikelytics" class="lia-mention lia-mention-user"&gt;Mikelytics&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="177040" data-lia-user-login="powerbiadmin" class="lia-mention lia-mention-user"&gt;powerbiadmin&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="29424" data-lia-user-login="PBICommunity" class="lia-mention lia-mention-user"&gt;PBICommunity&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="272177" data-lia-user-login="PBCommunity" class="lia-mention lia-mention-user"&gt;PBCommunity&lt;/a&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks in advance&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 02 Dec 2022 11:25:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-customers-repeat-purchase-check-in-current-months-DAX/m-p/2944452#M97360</guid>
      <dc:creator>shankarshiva</dc:creator>
      <dc:date>2022-12-02T11:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling customers repeat purchase check in current months- DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-customers-repeat-purchase-check-in-current-months-DAX/m-p/2944470#M101650</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Hello Experts&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;I am trying to calculate repeat purchase customer count of rolling 12M customers in current month.&lt;/P&gt;&lt;P&gt;Like if we are in Dec22 then rolling customer 12month will be Dec21 to Nov22, if we are in Nov22 then rolling 12month customer will be Nov21 to Oct22.&lt;/P&gt;&lt;P&gt;I am tying to get this by below DAX but output is coming incorrect.&lt;/P&gt;&lt;P&gt;Need your help please.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Repeat in Current Month of Rolling L12M customers =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Var&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;_enddate=&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;('Calendar'[Date])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;_startdate=&lt;/SPAN&gt;&lt;SPAN&gt;EOMONTH&lt;/SPAN&gt;&lt;SPAN&gt;(_enddate,-&lt;/SPAN&gt;&lt;SPAN&gt;13&lt;/SPAN&gt;&lt;SPAN&gt;)+&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;_Rolling12MCustomers =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATETABLE&lt;/SPAN&gt;&lt;SPAN&gt;('Secondary Data','Secondary Data'[New Key for Retailer count],&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;all&lt;/SPAN&gt;&lt;SPAN&gt;('Calendar'),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'Calendar'[Date]&amp;gt;=_StartDate&amp;amp;&amp;amp;'Calendar'[Date]&amp;lt;=&lt;/SPAN&gt;&lt;SPAN&gt;EOMONTH&lt;/SPAN&gt;&lt;SPAN&gt;(_enddate,-&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Var&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;_CurrentMonthSales=&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATETABLE&lt;/SPAN&gt;&lt;SPAN&gt;('Secondary Data','Secondary Data'[New Key for Retailer count],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;all&lt;/SPAN&gt;&lt;SPAN&gt;('Calendar'),&lt;/SPAN&gt;&lt;SPAN&gt;MONTH&lt;/SPAN&gt;&lt;SPAN&gt;('Calendar'[Date])=&lt;/SPAN&gt;&lt;SPAN&gt;MONTH&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;('Calendar'[Date]))&amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;SPAN&gt;YEAR&lt;/SPAN&gt;&lt;SPAN&gt;(('Calendar'[Date])=&lt;/SPAN&gt;&lt;SPAN&gt;YEAR&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;('Calendar'[Date])))))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Var&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;RepeatCustomers=&lt;/SPAN&gt;&lt;SPAN&gt;INTERSECT&lt;/SPAN&gt;&lt;SPAN&gt;(_CurrentMonthSales,_Rolling12MCustomers)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(RepeatCustomers)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/148838" target="_blank" rel="noopener"&gt;@amitchandak&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/6614" target="_blank" rel="noopener"&gt;@Greg&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/2757" target="_blank" rel="noopener"&gt;@PowerBI&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/170347" target="_blank" rel="noopener"&gt;@administrator&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/313" target="_blank" rel="noopener"&gt;@Greg_Deckler&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/24542" target="_blank" rel="noopener"&gt;@PaulDBrown&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/225330" target="_blank" rel="noopener"&gt;@JihwanKim&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/291628" target="_blank" rel="noopener"&gt;@Jihwan_Kim&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/262645" target="_blank" rel="noopener"&gt;@Mikelytics&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/100342" target="_blank" rel="noopener"&gt;@lbendlin&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/177040" target="_blank" rel="noopener"&gt;@powerbiadmin&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/29424" target="_blank" rel="noopener"&gt;@PBICommunity&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/272177" target="_blank" rel="noopener"&gt;@PBCommunity&lt;/A&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks in advance&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 02 Dec 2022 11:31:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-customers-repeat-purchase-check-in-current-months-DAX/m-p/2944470#M101650</guid>
      <dc:creator>shankarshiva</dc:creator>
      <dc:date>2022-12-02T11:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling customers repeat purchase check in current months- DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-customers-repeat-purchase-check-in-current-months-DAX/m-p/2944879#M101651</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="412578" data-lia-user-login="shankarshiva" class="lia-mention lia-mention-user"&gt;shankarshiva&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;Rolling 12 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date],MAX('Date'[Date]),-12,MONTH))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rolling 12 before 12 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date],eomonth(MAX('Date'[Date]),-12) ,-12,MONTH))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lost Customer This Period = Sumx(VALUES(Customer[Customer Id]),if(ISBLANK([Rolling 12) &amp;amp;&amp;amp; not(ISBLANK([Rolling 12 before 12])) , 1,BLANK()))&lt;BR /&gt;New Customer This Period = Sumx(VALUES(Customer[Customer Id]),if(ISBLANK([Rolling 12 before 12]) &amp;amp;&amp;amp; not(ISBLANK([Rolling 12])) , 1,BLANK()))&lt;BR /&gt;Retained Customer This Period = Sumx(VALUES(Customer[Customer Id]),if(not(ISBLANK([Rolling 12])) &amp;amp;&amp;amp; not(ISBLANK([Rolling 12 before 12])) , 1,BLANK()))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Customer Retention with Dynamic Segmentation, New/Lost/Retain Customer Count: &lt;A href="https://www.youtube.com/watch?v=W4EF1f_k6iY" target="_blank"&gt;https://www.youtube.com/watch?v=W4EF1f_k6iY&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Customer Retention Part 1:&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-1-Month-on-Month-Retention/ba-p/1361529" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-1-Month-on-Month-Retention/ba-p/1361529&lt;/A&gt;&lt;BR /&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 14:46:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-customers-repeat-purchase-check-in-current-months-DAX/m-p/2944879#M101651</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-12-02T14:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling customers repeat purchase check in current months- DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-customers-repeat-purchase-check-in-current-months-DAX/m-p/2944887#M97377</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="412578" data-lia-user-login="shankarshiva" class="lia-mention lia-mention-user"&gt;shankarshiva&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;Rolling 12 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date],MAX('Date'[Date]),-12,MONTH))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rolling 12 before 12 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date],eomonth(MAX('Date'[Date]),-12) ,-12,MONTH))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lost Customer This Period = Sumx(VALUES(Customer[Customer Id]),if(ISBLANK([Rolling 12) &amp;amp;&amp;amp; not(ISBLANK([Rolling 12 before 12])) , 1,BLANK()))&lt;BR /&gt;New Customer This Period = Sumx(VALUES(Customer[Customer Id]),if(ISBLANK([Rolling 12 before 12]) &amp;amp;&amp;amp; not(ISBLANK([Rolling 12])) , 1,BLANK()))&lt;BR /&gt;Retained Customer This Period = Sumx(VALUES(Customer[Customer Id]),if(not(ISBLANK([Rolling 12])) &amp;amp;&amp;amp; not(ISBLANK([Rolling 12 before 12])) , 1,BLANK()))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Customer Retention with Dynamic Segmentation, New/Lost/Retain Customer Count: &lt;A href="https://www.youtube.com/watch?v=W4EF1f_k6iY" target="_blank" rel="noopener"&gt;https://www.youtube.com/watch?v=W4EF1f_k6iY&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Customer Retention Part 1:&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-1-Month-on-Month-Retention/ba-p/1361529" target="_blank" rel="noopener"&gt;https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-1-Month-on-Month-Retention/ba-p/1361529&lt;/A&gt;&lt;BR /&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" rel="noopener"&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 14:47:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-customers-repeat-purchase-check-in-current-months-DAX/m-p/2944887#M97377</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-12-02T14:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling customers repeat purchase check in current months- DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-customers-repeat-purchase-check-in-current-months-DAX/m-p/2946450#M97516</link>
      <description>&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for quick reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't want to check rolling customer 12 before 12. I want to check only rolling 12M customers repeat&amp;nbsp; in current month only. but as I am seeing you have taken 12 before 12 also which I think incorrect.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Request you please help.&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;</description>
      <pubDate>Sun, 04 Dec 2022 10:03:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-customers-repeat-purchase-check-in-current-months-DAX/m-p/2946450#M97516</guid>
      <dc:creator>shankarshiva</dc:creator>
      <dc:date>2022-12-04T10:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling customers repeat purchase check in current months- DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-customers-repeat-purchase-check-in-current-months-DAX/m-p/2956367#M98214</link>
      <description>&lt;P&gt;still waiting for response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="170347" data-lia-user-login="administrator" class="lia-mention lia-mention-user"&gt;administrator&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="89381" data-lia-user-login="pbiadmin" class="lia-mention lia-mention-user"&gt;pbiadmin&lt;/a&gt;&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="7987" data-lia-user-login="Member123456" class="lia-mention lia-mention-user"&gt;Member123456&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 10:00:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-customers-repeat-purchase-check-in-current-months-DAX/m-p/2956367#M98214</guid>
      <dc:creator>shankarshiva</dc:creator>
      <dc:date>2022-12-08T10:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling customers repeat purchase check in current months- DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-customers-repeat-purchase-check-in-current-months-DAX/m-p/2956370#M98215</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="86715" data-lia-user-login="MicrosoftADE" class="lia-mention lia-mention-user"&gt;MicrosoftADE&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 10:02:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-customers-repeat-purchase-check-in-current-months-DAX/m-p/2956370#M98215</guid>
      <dc:creator>shankarshiva</dc:creator>
      <dc:date>2022-12-08T10:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling customers repeat purchase check in current months- DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-customers-repeat-purchase-check-in-current-months-DAX/m-p/3005166#M101655</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="412578" data-lia-user-login="shankarshiva" class="lia-mention lia-mention-user"&gt;shankarshiva&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on your description, I have created a simple sample:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Please try:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
var _a = EOMONTH(MAX('Calendar'[Date]),-1)
var _b = EOMONTH(MAX('Calendar'[Date]),-13)
var _c =SUMMARIZE('Table','Table'[Column],"Repeat",IF(NOT(ISBLANK(CALCULATE(COUNT('Table'[Column]),FILTER(ALL('Table'),[Date]&amp;lt;=_a&amp;amp;&amp;amp;[Date]&amp;gt;_b&amp;amp;&amp;amp;[Column]=EARLIER('Table'[Column]))))),1,0))
return SUMX(_c,[Repeat])&lt;/LI-CODE&gt;
&lt;P&gt;Final output:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jianbo Li&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 08:05:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-customers-repeat-purchase-check-in-current-months-DAX/m-p/3005166#M101655</guid>
      <dc:creator>v-jianboli-msft</dc:creator>
      <dc:date>2023-01-06T08:05:15Z</dc:date>
    </item>
  </channel>
</rss>

