Showing results for 
Search instead for 
Did you mean: 
Helper III
Helper III

Customer Retention from new Customers in a period of time

Hey Everyone, how you all doing?

I have a challenge here in my office.

Every day we have new costumers in our App.

And in order to look at the retetion that we are causing on those new costumers I need to create a graphic just like this one as an example to see the accumullate retention throught the days.

And the dynamic is like this:

Every day we look back to see how many costumers we have in total (all the new ones from all the previous days), that already made more than one order. (This is the retetion, he entered as a new costumer and made a second order or more).

And the retentio is: all the base that made more than one order/all the base 

An important note here is that we can't consider the new costumer in the day that we are looking at.

So... If we are in day 5, we get all the new costumers from day 1 to day 4, see how many of then has already more than one order and divide by all the new costumers from day 1 to day 4.

And kind of do that every single day, to see if the retention increases.

It is important to enphasize that must be in a period of time.

I have a Calendar Table, an Order Table that has client_id on it.

Does anyone know how to crack this one?

Thank you very much in advance.

example below:


Community Support
Community Support

Hi @danlindoso11,

According to your description, It sounds like a common data range analysis requirement. For this scenario, I'd like to suggest you take a look at the following link 'start date', 'end date' part to create a formula to analysis:
Before You Post, Read This  

In addition, you can also try to create a new table to expand table records for analysis:

Spread revenue across period based on start and end date, slice and dase this using different dates 

If these also don't help, please share more detailed information to help us clarify your scenario to test.

How to Get Your Question Answered Quickly 


Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Super User
Super User


Share a simple dataset and clearly show the expected result.

Ashish Mathur
Super User
Super User

@danlindoso11 , Try measures likes these


Today = CALCULATE([Sales],filter(all('Date'), 'Date'[Date] = Max(Date[Date])) )

Rolling all before today = CALCULATE([Sales],filter(all('Date'), 'Date'[Date]< max('Date'[Date])))

New Customer This Period = Sumx(VALUES(Customer[Customer Id]),if(ISBLANK([Rolling all before today ]) && not(ISBLANK([Today])) , 1,BLANK()))

Retained Customer This Period = Sumx(VALUES(Customer[Customer Id]),if(not(ISBLANK([Today])) && not(ISBLANK([Rolling all before today ])) , 1,BLANK()))


Lost Customer This Period = Sumx(VALUES(Customer[Customer Id]),if(ISBLANK([Today]) && not(ISBLANK([Rolling all before today ])) , 1,BLANK()))



Blog on similar topic.


We check customer's purchase for period(day/month etc)  and complete time period before that


then use isblank to play magic





Customer Retention Part 1:
Customer Retention Part 2: Period over Period Retention :

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!
!! Subscribe to my youtube Channel !!

Helpful resources

May 23 2022 epsiode 5 without aka link.jpg

The Power BI Community Show

Welcome to the Power BI Community Show! Jeroen ter Heerdt talks about the importance of Data Modeling.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through June10th!

Power BI Dev Camp Session 22 without aka link and time 768x460.jpg

Check it Out!

Watch Session 22 Ted's Dev Camp along with past sessions!

Power BI Release May 2022 768x460.png

Check it out!

Click here to read more about the May 2022 updates!

Top Kudoed Authors