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 Guys,
I am trying to measure repeat customers based on email addresses. As some customers make multiple purchases on the same day, I have added another column which combines date and email address called EmailDate I have a matrix which then looks at the email address, and the distinct count of EmailDate, and therefore any which returns 2 and over are repeat customers for the period I am looking at. So for example -
The original data looks like
Email Booking Date EmailDate
Dave@address.com 11/12/2018 Dave@address.com 11/12/2018
Dave@address.com 11/12/2018 Dave@address.com 11/12/2018
Dave@address.com 08/12/2018 Dave@address.com 08/12/2018
Dave@address.com 09/12/2018 Dave@address.com 09/12/2018
etc etc etc.
And so my matrix looks like -
Email (Distinct) Count of EmailDate
Dave@address.com 3
Meg@address.com 2
Jane@address.com 1
I need a measure of all of the results from the matrix that are 2 and above, so that I can calculate how many customers are repeat customers in the period.
Hope that makes sense!
Cheers
Solved! Go to Solution.
Hi,
Try this measure
=COUNTROWS(FILTER(SUMMARIZE(VALUES(DATA[Email]),[Email],"ABCD",DISTINCTCOUNT(Data[Booking Date])),[ABCD]>=2))
Hope this helps.
Hi,
Try this measure
=COUNTROWS(FILTER(SUMMARIZE(VALUES(DATA[Email]),[Email],"ABCD",DISTINCTCOUNT(Data[Booking Date])),[ABCD]>=2))
Hope this helps.
THANKYOU SO MUCH!!!!!!!!!! Ashish you're a legend.
You are welcome.
Hi @flights
Create a measure
Measure = CALCULATE(DISTINCTCOUNT(Sheet2[Booking Date]),ALLEXCEPT(Sheet2,Sheet2[Email ]))
Best Regards
maggie
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 |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |