Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
Anonymous
Not applicable

if

Hi, I want to get a retention rate of each customer. To get the retention rate, I need to check if the customer is qualified to the requirements that I've made.

 

Req 1 = customer must not buy any product from us or other companies for the last 24 months( or 2 years), and purchased our product in between 36th month and 24th month (in 3rd year). 

Req 2 = Customer must not buy any of other companies's product for the last 36months and purchased our product every year during the last 36 months(3years).

The months counts from today's date. ex) 36 months from today is 2017/6/24

 

The data I have is shown below.

CUSTOMERIDDATE(Last purchased)#units boughtmanufacturerYear
XXXXX2015/02/121Ours2015
XXXXX2018/12/281

competitor 1

2018

XXXXX2019/01/221competitor 22019

 

I'm new to power bi so if there is detail explanation, it would be appreciated.

Thank you.

1 ACCEPTED SOLUTION
dax
Community Support
Community Support

Hi @Anonymous , 

Did you check my pbix file? If this doesn't  help , please correct me and inform me more detailed information(such as your expected output and your sample data)? Then I will help you more correctly.

Please do mask sensitive data before uploading.

Thanks for your understanding and support.
Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
dax
Community Support
Community Support

Hi @Anonymous , 

You could use measure to achieve this goal, you could refer to my sample for details. If this is not waht you want, please correct me .

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Could you provide me a example of how would you solve this?

dax
Community Support
Community Support

Hi @Anonymous , 

Did you check my pbix file? If this doesn't  help , please correct me and inform me more detailed information(such as your expected output and your sample data)? Then I will help you more correctly.

Please do mask sensitive data before uploading.

Thanks for your understanding and support.
Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

Do you want this done in Power Query or in DAX?

Anonymous
Not applicable

Either way is fine for me I just need a solution for this problem. I'm trying to use time intelligence dax function to solve this but still could not get this solve.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.