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 All,
I need help in calculating the new customers for every month.
Below is the sample data:
CustName | MonthYear | Cash | Investments | Deposit |
A | Jan 2020 | 10 | 20 | 11 |
B | Jan 2020 | 30 | 13 | 12 |
A | Feb 2020 | 12 | 30 | 12 |
B | Feb 2020 | 14 | 45 | 10 |
C | Feb 2020 | 10 | 12 | 20 |
D | Feb 2020 | 12 | 14 | 15 |
E | Feb 2020 | 23 | 34 | 5 |
1. I need to calculate the distinct new customers count for the month and also the respective sum of cash, investment and deposit
For ex: From data:
New customer for Jan: 2 ( A and B)
New customer for Feb: 3 ( C, D, E)
Expected result:
MonthYear | NewCustomers | Cash | Investments | Deposit |
Jan 2020 | 2 | 40 | 33 | 23 |
Feb 2020 | 3 | 45 | 60 | 40 |
Any help would be appreciated.
Thanks.
Solved! Go to Solution.
@Tanushree_Kapse , refer to my blog on same topic
Customer Retention Part 1:
https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-1-Month-on-Month-Retention/b...
Customer Retention Part 5: LTD Vs Period Retention
https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-5-LTD-and-PeriodYoY-Retentio...
@Tanushree_Kapse , refer to my blog on same topic
Customer Retention Part 1:
https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-1-Month-on-Month-Retention/b...
Customer Retention Part 5: LTD Vs Period Retention
https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-5-LTD-and-PeriodYoY-Retentio...
Hi @amitchandak ,
Yes, that helped. I am able to calculate the new customers using the below DAX:
New Customers count=
MonthYear | NewCustomers | Cash | Investments | Deposit |
Jan 2020 | 2 | 40 | 33 | 23 |
Feb 2020 | 3 | 45 | 60 | 40 |
@Tanushree_Kapse , In the last measure do some change
example
new customer cash =
sumx(VALUES(FACT_TABLE[CLIENTNAME]), if(ISBLANK(bLMTD) && not(ISBLANK(aMTD)) ,[Cash],blank()))
new customer Deposit=
sumx(VALUES(FACT_TABLE[CLIENTNAME]), if(ISBLANK(bLMTD) && not(ISBLANK(aMTD)) ,[Deposit],blank()))
\Hi @amitchandak ,
New Investment=
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 |
---|---|
57 | |
49 | |
44 | |
18 | |
18 |