Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi, Thank you in advance for supporting the DAX for the below sample data.
I would like to get DAX for NELC (New, Expand,Lost, Churn) analysis for Revenue and customer count.
Expected results are calculated below for 2019:
New = Customer ABC (count=1) is returned as New in 2019 with an Amount of 67
Expand = Customer YRP (count=1) revenue is increased to 67 in 2019 from 45 of 2018,so expand revenue is 22
Lost = Customer PS and MEP (count=2) revenue in 2019 is 0, hence lost revenue is -1135
Churn = Customer HM (count=1) revenue is decreased to 567 in 2019 from 876 of 2018, so churn revenue is -309
Here's a full article that does in an expert way all you need: Calculate New, Returning, Lost, and Recovered Customers in #dax - SQLBI
Hi, @ManjunathaEP
Please check the below picture and the sample pbix file's link down below whether it is what you are looking for.
all measures are in the sample pbix file.
https://www.dropbox.com/s/gpftz39v7a8r76z/manjunathaep.pbix?dl=0
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: https://www.linkedin.com/in/jihwankim1975/
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi Jihwan Kim, Thank you for sharing the .pbix on expected DAX, it is working fine by year.. Is possible to get the results for different selections like Revenue class or by customer wise, country wise etc.,
Thank you again
Hi, @ManjunathaEP
Thank you for your feedback.
I think it is possible.
Please share your sample case and which dimension you want to add, then I can try to have a look into it.
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: https://www.linkedin.com/in/jihwankim1975/
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi Jihwan Kim, Thank you again for helping on this.
With reference to the same sample data, I would like to get the Sales revenue by customer wise like below:
Please do the needful
Hi, @ManjunathaEP
I realized that there was some mistake in my file.
I fixed it and please check the below link. I added the table visualization that you requested.
thank you.
https://www.dropbox.com/s/gpftz39v7a8r76z/manjunathaep.pbix?dl=0
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: https://www.linkedin.com/in/jihwankim1975/
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi Jihwan Kim, sorry to bother u again, the sent DAX are working fine in the sample data but when I replace it with the original data, it is calculating the total summary instead of individual values for customers. Ex: Below screenshot is for lost Sales
Thank you
Hi, @ManjunathaEP
If it is OK with you, please share your sample pbix file's link, then I can try to have a look into it to come up with a solution.
Thank you.
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
47 | |
26 | |
19 | |
14 | |
10 |
User | Count |
---|---|
58 | |
50 | |
44 | |
19 | |
19 |