Forum Discussion
New Customers YTD subscription
- 6 years ago
Hi rhl94 ,
I am not sure your expected output, you could refer to my sample for details. If this is not what you want, please correct me.
Best Regards,
Zoe ZhiIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Ok, So I have tried to recreate a pbix with the same structure.
https://www.dropbox.com/s/ck6ufzfbin14x2x/sampledataYTDNewBusiness.pbix?dl=0
There might be overlap in the start-end date periods, but I created the numbers using randbetween, so just ignore that.
So for example, ID 229 should not be a new customer, since there is a renewaldate from before 2020.
Likewise ID 496 should be a new customer, since its first appearance is in 2020.
After this measure, I also need to define the lost customers, but I thought it would be quite similar - not sure though. A customer in 2019, that has no renewal in 2020 is not necessarily a lost customer, but rather if the ID doesnt have an end date in the future, it should be a lost customer.
I've tried to follow the dax pattern -> https://www.daxpatterns.com/new-and-returning-customers/ but without luck.
@amitchanda
edit: the real model is based off a ssas model, so a power query solution is not possible (e.g. Group by min date). I could add a calculated column in the ssas model, but would prefer not to.
Hi rhl94 ,
I am not sure your expected output, you could refer to my sample for details. If this is not what 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.