March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
I have created a DAX Measure calculation to calculate churned clients count for each Month-Year when a client has not made any sales after 30 days from their last transaction date till date (current month-year).
Now if I remove the Instance Name(Client Name) from the above table, everything goes blank.
Can you pls help me correct the DAX so that even if I don't select Client Name, it shows me the Lapsed Clients Count with respect to Month-Year as shown below?
Solved! Go to Solution.
Hi,
You may download my PBI file from here.
Hope this helps.
Hi @Ashish_Mathur @parry2k,
Here is the link to download the report template.
https://drive.google.com/file/d/1ulYtC-30rD1CWAbc__y7lHl7IbxLAr2Z/view?usp=sharing
Hi,
I get an Access Denied message. Also, please clarify what you mean by "made any sales after 30 days from their last transaction date till date (current month-year)". Please illustrate with a simple example.
Hi @Ashish_Mathur,
Here is a simple example of my requirement,
I just need the count of Clients for each month-year after their last transaction date (forget about the last 30 days).
So, the below example in the screenshot is for 1 Client, where its last transaction of 655.0 was done in the month of March - 2019 and after that, there were no transactions/sales and I am trying to take the count for each month after their Last Sales date till current month (which works fine with my logic).
Now, when I remove the filter on Client, I want to display the counts of all clients who did not make any sales after their last transaction date.
The result should display something like this:
Please, let me know if you need more information and you should be able to access the report template now.
This is the logic that I am currently working with:
Please let me know your thoughts on this?
Hi,
I do not see any data in your file
I suggest you share your tables in an MS Excel file and show the expected result there.
Hi @Ashish_Mathur,
Here is the sample output file.
https://drive.google.com/file/d/13HuRGZ9_yeslYIyXKSjEgUB7XCko8Xte/view?usp=sharing
Hi,
You may download my PBI file from here.
Hope this helps.
Hi @Ashish_Mathur
Thank you for your reply, I have looked into the logic but I believe it is not giving correct results.
here is the sample output:
1) say for Client Id = 35323, Date of last interaction = 12/3/2020 and so the Churned Customers logic should show 1 for dates after Dec-2020, but it shows for all the dates (from Jan-2017 till Dec-21)
Here is another example,
2) for Client Id = 541, Date of last interaction = 10/7/2019 and so the Churned Customers logic should mark 1 from November 2019.
and a similar thing happening with the Client Id = 30025, Date of Last interaction = 10/3/2020, but churned customers logic shows 1 from Jan-2020 rather than Nov-2020.
If you could please help me resolve these errors or provide an alternative approach?
Hi @Ashish_Mathur,
Hi,
You may download my PBI file from here.
Hope this helps.
Hi @Ashish_Mathur,
This logic works perfectly. Thank you so much for your effort.
One last ask, can we build the Churned Clients logic only up to the end of the previous month. Since there is a possibility that the client may have a transaction in the current month and we do not already want to mark it as churned until the completion of the current month?
You are welcome. Modify the measure to:
@Anonymous it will be much easier if you can provide the sample pbix file.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Hi,
Share the link from where i can download your PBI file.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
134 | |
90 | |
90 | |
66 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
70 | |
68 |