Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register 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.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
88 | |
85 | |
82 | |
65 | |
49 |
User | Count |
---|---|
138 | |
110 | |
104 | |
66 | |
64 |