Forum Discussion

abloor's avatar
abloor
Icon for Helper IV rankHelper IV
6 years ago
Solved

New/Returning/Lost Customers

Hi,

I need to create a report that shows which clients were New that month, which were Returning that month and which were Lost.

It needs to be based on the selected Month in a slicer, not from 'today'.

 

NEW means they have spent in the selected month, but NOT in the previous 13 months from the selection.  (Any spend before 13 months doesn't matter as we would call them 'new' again.)

RETURNING means they have spent in the selected month, AND at some point in the previous 13 months.

LOST means they have not spent in the selected month, nor in the previous 13 months. But they HAVE spent before the previous 13 months.

 

I'd like New/Returning/Lost to be choosable in a slicer.

 

My main data source has a 'month' column, which links by relationship to a 'fulldate' column in my calendar table.  I'm not sure whether to use the month column or the fulldate column so guidance on that would be appreciated too please.

 

I have seen this page but I don't feel it fits my circumstances as I'm not looking to count the clients.  I want the client to show up in a list with their name and their spend per month.

https://www.daxpatterns.com/new-and-returning-customers/

 

Thanks in advance for any help you can provide :-)

18 Replies

    • abloor's avatar
      abloor
      Icon for Helper IV rankHelper IV

      Thanks for your time Ashish_Mathur 

      I have created this data and PBIX - hopefully it's ok.  I feel like I need a measure or calc column to add into my matrix rows, above the client name, so the clients are grouped into New/Returning/Lost. However if this isn't possible I'd be happy with a simple table that can be filtered with a slicer for New/Returning/Lost.  Open to other ideas too of course.

       

      https://1drv.ms/u/s!AvZLa7VG1kXrgUdAGdAYeHEMOSbS?e=4Shf6p

       

      Expected Result if Sep 2019 is chosen in slicer:

       

      NEW

        AAA

        BBB

        FFF

       

      RETURNING

        CCC

        DDD

       

      LOST

        EEE

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Ashish_Mathur ,

     

    Thanks for sharing all the useful information. I have a similar problem and want to find new, lost and repeated customers. My dataset is huge so attaching a sample of it. Dataset has multiple rows of same and different customers making multiple purchases from 2017 to 2019. My goal is to have a table with Col 1--> Year , Col-->2 Months , Col 3--> Count of New customers and so on for Lost and repeated customers + their Sales. Also a slicer for Year and Month filtering. (already have a calendar table in my report). Churn period is 2 months.

    Tried various formulas but nothing worked. All those work on unique customer list which is not in my case. Requesting your help here.  Couldn't find attach option, hence pasting sample here.

    THANKS A LOT !!

     

    DateCustskuSalesUnits
    1/1/201712347064.991
    1/1/2017123470435.982
    1/1/2017123410096.491
    23/5/20174444107192.355
    12/7/2018457821023.581
    20/8/2018123410900
    10/12/20187654106-31.99-1
    12/5/20184582213.271
    12/11/201724421023.431
    12/5/201887152066.141
    12/5/2018871511378.982
    12/5/201887151839188.271
    23/11/201912349223.991
    10/4/2019122499-7.99-1
    12/5/20186446100290.771
    12/5/2018171415864.221
    12/5/2018673670290.246
    12/5/201826467019.991
    10/3/201921351085.991
    14/5/201968618139648
    20/7/201928012035.22
    22/9/20191872101521.991
    10/10/20193615105512.324
    10/11/201910292500
    22/12/201918729862400
    10/4/2019123410526.791
    10/4/20196736108929.991
    10/4/2019606218849.482
    10/4/201967361999.991

     

     

    • Ashish_Mathur's avatar
      Ashish_Mathur
      Icon for Super User rankSuper User

      Hi,

      On the sample data that you have shared, show the exact result you are expecting.

      • fazza1991's avatar
        fazza1991
        Icon for Helper II rankHelper II

        Hi,

         

        Lets take the example from your PBIX file.

         

        If we look at just the lost clients '2019'

         

         

        All three clients last booking date:

         

        ClientLast Date
        AAA01/09/2019
        BBB01/09/2019
        EEE01/12/2016

         

        As you can see from the screenshot - each client is showing as lost in each month therefore double counting them.

        I would have expected the following:

         

        AAA and BBB to show as LOST 01/01/2018 and only for January 2018 rather than every month up until Sep-2019.

        EEE to show LOST 01/12/2016 and not appear in every month 

         

        So in theory i did not lose these clients every month 

         

        In reality you can only lose a client once (they may return after a period of time but that would be considered recovered or new).

         

        Thanks

         

  • sorry to bring up topic from many years ago.

     

    Solution for me wokred in some elements but...

     

    How do we apply this so its unqiue per account id per month? currently it displays lost customers and keeps adding them to the list each month. E.g. lets say ABCD would appear in my lost customer for Jan Feb Mar Apr etc but only need it to appear in the first month no revenue was generated for them (if this makes sense)

    • Ashish_Mathur's avatar
      Ashish_Mathur
      Icon for Super User rankSuper User

      Hi,

      Share some data, explain the question and show the expected result.

  • Hi,

     

    Lets take the example from your PBIX file.

     

    If we look at just the lost clients '2019'

     

     

    All three clients last booking date:

     

    ClientLast Date
    AAA01/09/2019
    BBB01/09/2019
    EEE01/12/2016

     

    As you can see from the screenshot - each client is showing as lost in each month therefore double counting them.

    I would have expected the following:

     

    AAA and BBB to show as LOST 01/01/2018 and only for January 2018 rather than every month up until Sep-2019.

    EEE to show LOST 01/12/2016 and not appear in every month 

     

    So in theory i did not lose these clients every month 

     

    In reality you can only lose a client once (they may return after a period of time but that would be considered recovered/new).

     

    Thanks