<?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: Percent of Customers Returned After 90 Days in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-Customers-Returned-After-90-Days/m-p/4827720#M184440</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need help on this same exercise. I tried the posted solutions but I can't get the Customers Who Returned Within 90 Days measure to work. The measure is either returning a result far too low (3 in July 2001 but it should be ~142) or is returning the same result as Total Customers for each DateFirstPurchase Year/Month. Please help, thank you!&lt;/P&gt;</description>
    <pubDate>Tue, 16 Sep 2025 16:11:15 GMT</pubDate>
    <dc:creator>xbaby32</dc:creator>
    <dc:date>2025-09-16T16:11:15Z</dc:date>
    <item>
      <title>Percent of Customers Returned After 90 Days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-Customers-Returned-After-90-Days/m-p/4647795#M177899</link>
      <description>&lt;P&gt;Hello, I'm trying to create a DAX formula to find the % of customers that returned 90 days after their first purchase. I've spent several hours trying to create and recreate the formula but have not been able to replicate the numbers in the screenshot (for the 3rd or 4th column):&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know there are other posts online about this, but none of the formulas have worked for me or any manipulations. I have a Sales table with CustomerKey and OrderDate. I have a Customer table with CustomerKey and DateFirstPurchase. I've spent many hours working on this and various formulas but this is the one I'm working with now:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Purchase within &lt;/SPAN&gt;&l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&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Any help or insight is greatly appreciated.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 11 Apr 2025 00:31:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-Customers-Returned-After-90-Days/m-p/4647795#M177899</guid>
      <dc:creator>beachwaves18</dc:creator>
      <dc:date>2025-04-11T00:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Percent of Customers Returned After 90 Days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-Customers-Returned-After-90-Days/m-p/4648215#M177919</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1257550" data-lia-user-login="beachwaves18" class="lia-mention lia-mention-user"&gt;beachwaves18&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suggest use these 4 measures :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TotalCustomers = COUNTROWS(Customer)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TotalCustomersByDateFirstPurchase =&lt;BR /&gt;CALCULATE(COUNTROWS(Customer), ALLEXCEPT(Customer, Customer[DateFirstPurchase - Customer Table]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;CustomersReturnedWithin90Days =&lt;BR /&gt;VAR CustomersWithReturn =&lt;BR /&gt;CALCULATETABLE(&lt;BR /&gt;VALUES(Sales[Customer Key - Sales Table]),&lt;BR /&gt;FILTER(&lt;BR /&gt;Sales,&lt;BR /&gt;Sales[OrderDate - Sales Table] &amp;lt;= RELATED(Customer[DateFirstPurchase - Customer Table]) + 90&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;COUNTROWS(CustomersWithReturn)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PercentageReturnedAfter90Days =&lt;BR /&gt;DIVIDE([CustomersReturnedWithin90Days], [TotalCustomersByDateFirstPurchase])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to get the below&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and without the customer name which is hopefully close to your requirement :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;</description>
      <pubDate>Fri, 11 Apr 2025 08:04:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-Customers-Returned-After-90-Days/m-p/4648215#M177919</guid>
      <dc:creator>antfr99</dc:creator>
      <dc:date>2025-04-11T08:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Percent of Customers Returned After 90 Days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-Customers-Returned-After-90-Days/m-p/4648275#M177923</link>
      <description>&lt;P&gt;Try&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Purchase within 90days(%) =
VAR AllCustomers = [Customers]
VAR ReturnWithin90Days =
    SUMX (
        Customerlist,
        VAR FirstPurchase = Customerlist[DateFirstPurchase]
        VAR NumPurchases =
            CALCULATE (
                COUNTROWS ( Sales ),
                DATESINPERIOD ( 'Calendar'[Date], FirstPurchase + 1, 89, DAY )
            )
        VAR Result =
            IF ( NumPurchases &amp;gt; 1, 1 )
        RETURN
            Result
    )
VAR Result =
    DIVIDE ( ReturnWithin90Days, AllCustomers )
RETURN
    Result
&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 11 Apr 2025 08:53:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-Customers-Returned-After-90-Days/m-p/4648275#M177923</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2025-04-11T08:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Percent of Customers Returned After 90 Days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-Customers-Returned-After-90-Days/m-p/4650615#M178023</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1257550" data-lia-user-login="beachwaves18" class="lia-mention lia-mention-user"&gt;beachwaves18&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thank you for reaching out to the Microsoft Fabric Forum Community.&lt;/P&gt;
&lt;P&gt;Also, thanks to&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;&amp;nbsp; and&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="464333" data-lia-user-login="antfr99" class="lia-mention lia-mention-user"&gt;antfr99&lt;/a&gt;&amp;nbsp; &amp;nbsp;for the prompt and helpful response.&lt;/P&gt;
&lt;P&gt;Just following up to check if the solution shared by our Super User helped resolve your issue. If you're still facing difficulties or need further assistance, please let us know — we’re here to help!&lt;BR /&gt;If the response addressed your query, we kindly request you to mark it as Accepted Solution and click Yes if you found it helpful. This supports others in the community as well.&lt;/P&gt;
&lt;P&gt;If you find this response helpful, please consider marking it as the accepted solution and giving it a thumbs-up to support others in the community.&lt;/P&gt;
&lt;P&gt;Thank you &amp;amp; Regards,&lt;BR /&gt;Prasanna kumar&lt;/P&gt;</description>
      <pubDate>Mon, 14 Apr 2025 06:31:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-Customers-Returned-After-90-Days/m-p/4650615#M178023</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-04-14T06:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Percent of Customers Returned After 90 Days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-Customers-Returned-After-90-Days/m-p/4655179#M178209</link>
      <description>&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1257550" data-lia-user-login="beachwaves18" class="lia-mention lia-mention-user"&gt;beachwaves18&lt;/a&gt;,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;We wanted to kindly check in to see if everything is working as expected after trying the suggested solution. If there’s anything else we can assist with, please don’t hesitate to ask.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;If the issue is resolved, we’d appreciate it if you could mark the helpful reply as &lt;SPAN&gt;Accepted Solution&lt;/SPAN&gt; — it helps others who might face a similar issue.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Warm regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Prasanna Kumar&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 07:16:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-Customers-Returned-After-90-Days/m-p/4655179#M178209</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-04-16T07:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Percent of Customers Returned After 90 Days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-Customers-Returned-After-90-Days/m-p/4664148#M178628</link>
      <description>&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1257550" data-lia-user-login="beachwaves18" class="lia-mention lia-mention-user"&gt;beachwaves18&lt;/a&gt;,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Just a gentle reminder — has your issue been resolved? If so, we’d be grateful if you could mark the solution that worked as &lt;SPAN&gt;Accepted Solution&lt;/SPAN&gt;, or feel free to share your own if you found a different fix.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;This not only closes the loop on your query but also helps others in the community solve similar issues faster.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Thank you for your time and feedback!&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Best,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Prasanna Kumar&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 02:56:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-Customers-Returned-After-90-Days/m-p/4664148#M178628</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-04-23T02:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Percent of Customers Returned After 90 Days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-Customers-Returned-After-90-Days/m-p/4672349#M178948</link>
      <description>&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1257550" data-lia-user-login="beachwaves18" class="lia-mention lia-mention-user"&gt;beachwaves18&lt;/a&gt;,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Just a gentle reminder — has your issue been resolved? If so, we’d be grateful if you could mark the solution that worked as &lt;SPAN&gt;Accepted Solution&lt;/SPAN&gt;, or feel free to share your own if you found a different fix.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;This not only closes the loop on your query but also helps others in the community solve similar issues faster.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Thank you for your time and feedback!&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Best,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Prasanna Kumar&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 07:25:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-Customers-Returned-After-90-Days/m-p/4672349#M178948</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-04-29T07:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Percent of Customers Returned After 90 Days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-Customers-Returned-After-90-Days/m-p/4827720#M184440</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need help on this same exercise. I tried the posted solutions but I can't get the Customers Who Returned Within 90 Days measure to work. The measure is either returning a result far too low (3 in July 2001 but it should be ~142) or is returning the same result as Total Customers for each DateFirstPurchase Year/Month. Please help, thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Sep 2025 16:11:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-Customers-Returned-After-90-Days/m-p/4827720#M184440</guid>
      <dc:creator>xbaby32</dc:creator>
      <dc:date>2025-09-16T16:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: Percent of Customers Returned After 90 Days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-Customers-Returned-After-90-Days/m-p/4828289#M184458</link>
      <description>&lt;P&gt;Make sure that your date table is marked as a date table. If it is then the basic logic behind the solution should work.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Sep 2025 09:42:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-Customers-Returned-After-90-Days/m-p/4828289#M184458</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2025-09-17T09:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: Percent of Customers Returned After 90 Days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-Customers-Returned-After-90-Days/m-p/4828947#M184474</link>
      <description>&lt;P&gt;I double-checked and it is marked as a date table. My date table is calculated by:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Calendar =&lt;/SPAN&gt; &lt;SPAN&gt;CALENDAR&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;min&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Sales&lt;/SPAN&gt;&lt;SPAN&gt;[OrderDate]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;max&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Sales&lt;/SPAN&gt;&lt;SPAN&gt;[OrderDate]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Could the fact that the Calendar table is derived from the Sales[OrderDate] matter?&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 17 Sep 2025 22:44:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-Customers-Returned-After-90-Days/m-p/4828947#M184474</guid>
      <dc:creator>xbaby32</dc:creator>
      <dc:date>2025-09-17T22:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Percent of Customers Returned After 90 Days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-Customers-Returned-After-90-Days/m-p/4829466#M184481</link>
      <description>&lt;P&gt;No, that's fine.&lt;/P&gt;
&lt;P&gt;Do you have a customer dimension table which includes their first purchase date ?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 08:37:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-Customers-Returned-After-90-Days/m-p/4829466#M184481</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2025-09-18T08:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Percent of Customers Returned After 90 Days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-Customers-Returned-After-90-Days/m-p/4830037#M184514</link>
      <description>&lt;P&gt;The correct solution is below. I am looking for the Percent of Customers Returned with 90 Days of First Purchase and Percent Who Returned Within the Following 3 Months.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a Sales table that is many:one with the Customers table by CustomerKey. The Customers table has a column DateFirstPurchase. I have a calculated table Calendar one:many with the Sales table by OrderDate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Sales table&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ProductKey&lt;/TD&gt;&lt;TD&gt;OrderDate&lt;/TD&gt;&lt;TD&gt;CustomerKey&lt;/TD&gt;&lt;TD&gt;SalesOrderNumber&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;376&lt;/TD&gt;&lt;TD&gt;7/2/03 0:00&lt;/TD&gt;&lt;TD&gt;16688&lt;/TD&gt;&lt;TD&gt;SO51189&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;376&lt;/TD&gt;&lt;TD&gt;7/7/03 0:00&lt;/TD&gt;&lt;TD&gt;18212&lt;/TD&gt;&lt;TD&gt;SO51268&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;376&lt;/TD&gt;&lt;TD&gt;7/9/03 0:00&lt;/TD&gt;&lt;TD&gt;16702&lt;/TD&gt;&lt;TD&gt;SO51300&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;376&lt;/TD&gt;&lt;TD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is that I need a COUNTROWS measure to count the rows of a table that has all CustomerKeys with a DateFirstPurchase value and the next OrderDate within 90 days of DateFirstPurchase. So if a CustomerKey has a DateFirstPurchase of 8/1/01 and the next OrderDate of 9/1/01, it would be counted. But if a CustomerKey has a DateFirstPurchase of 8/1/01 and the next OrderDate of 12/1/01, it would not be counted as it is outside the 90 day window. For the Customers who returned within the following three months, I assume we can just expand our "window" of next OrderDate from 90 days to 180 days from DateFirstPurchase.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The below measure is what has been proposed previously on this thread, but I tried it and it is not returning the proper result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Purchase within 90days(%) =
VAR AllCustomers = [Customers]
VAR ReturnWithin90Days =
    SUMX (
        Customerlist,
        VAR FirstPurchase = Customerlist[DateFirstPurchase]
        VAR NumPurchases =
            CALCULATE (
                COUNTROWS ( Sales ),
                DATESINPERIOD ( 'Calendar'[Date], FirstPurchase + 1, 89, DAY )
            )
        VAR Result =
            IF ( NumPurchases &amp;gt; 1, 1 )
        RETURN
            Result
    )
VAR Result =
    DIVIDE ( ReturnWithin90Days, AllCustomers )
RETURN
    Result&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My 'Calendar' table is calculated by:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Calendar =&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;CALENDAR&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;min&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Sales&lt;/SPAN&gt;&lt;SPAN&gt;[OrderDate]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;max&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Sales&lt;/SPAN&gt;&lt;SPAN&gt;[OrderDate]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 19 Sep 2025 00:46:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-Customers-Returned-After-90-Days/m-p/4830037#M184514</guid>
      <dc:creator>xbaby32</dc:creator>
      <dc:date>2025-09-19T00:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: Percent of Customers Returned After 90 Days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-Customers-Returned-After-90-Days/m-p/4830411#M184521</link>
      <description>&lt;P&gt;Make sure that your calendar table is marked as a date table. Also, it is recommended that a calendar table should always include full years rather than starting and ending on random dates. You could use CALENDARAUTO() or adapt your current code to&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Calendar =
CALENDAR (
    DATE ( YEAR ( MIN ( Sales[OrderDate] ) ), 1, 1 ),
    DATE ( YEAR ( MAX ( Sales[OrderDate] ) ), 12, 31 )
)
&lt;/LI-CODE&gt;
&lt;P&gt;Separately, you could amend the original code to check if NumPurchases is greater than or equal to 1, currently it is checking for strictly greater than.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Sep 2025 08:46:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-Customers-Returned-After-90-Days/m-p/4830411#M184521</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2025-09-19T08:46:54Z</dc:date>
    </item>
  </channel>
</rss>

