Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

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.

  • dax's avatar
    dax
    6 years ago

    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.

5 Replies

    • Anonymous's avatar
      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.

  • dax's avatar
    dax
    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's avatar
      Anonymous
      Not applicable

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

      • dax's avatar
        dax
        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.