Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
I would like to get te amount of new customers over the period i have available in my dataset. the set is build up like:
cust id | date |
A | 2-1-2019 |
B | 2-1-2019 |
A | 16-1-2019 |
C | 30-1-2019 |
D | 2-2-2019 |
D | 3-2-2019 |
A | 7-2-2019 |
B | 15-2-2019 |
E | 20-2-2019 |
I would like to show the amount of new customers per month in a waterfall visualization. So in january it would show up 3 customers and in february it would show 2 new customers. Right now, if I use a distinct count on customer id, it returns the amount of distinct customers per month. So 3 in january and 4 in february. Can someone help?
Michel
Solved! Go to Solution.
Hi @mblonkatf ,
In your scenario, we can first create a calculated table to get the New date for each customer using the following query:
Table = SUMMARIZE(Data,Data[cust id],"New_date",MIN(Data[date]))
Then create a calculated column to get the month like below:
Month = 'Table'[New_date].[Month]
After that we can create a measure like below:
Measure = CALCULATE(COUNTROWS('Table'))
The result will like below:
Best Regards,
Teige
Hi @mblonkatf ,
In your scenario, we can first create a calculated table to get the New date for each customer using the following query:
Table = SUMMARIZE(Data,Data[cust id],"New_date",MIN(Data[date]))
Then create a calculated column to get the month like below:
Month = 'Table'[New_date].[Month]
After that we can create a measure like below:
Measure = CALCULATE(COUNTROWS('Table'))
The result will like below:
Best Regards,
Teige
thx a lot, its exactly what i'm looking for 🙂
thx pro,
Should be quite easy to find a formula to create a new column showing the first date for each customer, which you can then use the same calculation you've got at the moment, except it'd work
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
97 | |
65 | |
45 | |
39 | |
31 |
User | Count |
---|---|
164 | |
111 | |
61 | |
53 | |
38 |