This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
I'll give an example of what I'm trying to acheive, with some background:
The data I pull is from 1/1/19 to current day.
I'd like to see our repeat/return customers each month. I plan to display these in a monthly line graph and potentially a daily line graph using order_date as the x axis.
Example: When I click on January 19 in the graph, someone can qualify to be a repeat customer if she ordered a service on the 19th and on the 1st. When I click on the graph on January 1 in the graph, she should not appear--she had only booked one job at that point in time, so she was not a repeat customer at that time.
Does anyone know how to do this, or can point me in a good direction? I've only been using BI for 3 months.
Solved! Go to Solution.
If you have a data model that looks similar to this:
Then you can get the following output:
Using this type of calculation:
Repeat Customer Count =
CALCULATE (
COUNTROWS ( 'Customer' ),
FILTER (
'Customer',
CALCULATE (
COUNTROWS ( VALUES ( 'Data'[Date] ) ),
FILTER ( ALL ( 'Date'), 'Date'[Date] <= MAX ( 'Date'[Date] ) )
) > 1
&& CALCULATE(COUNTROWS('Data')) >= 1
)
)I have uploaded a sample workbook here: Sample Workbook
If you have a data model that looks similar to this:
Then you can get the following output:
Using this type of calculation:
Repeat Customer Count =
CALCULATE (
COUNTROWS ( 'Customer' ),
FILTER (
'Customer',
CALCULATE (
COUNTROWS ( VALUES ( 'Data'[Date] ) ),
FILTER ( ALL ( 'Date'), 'Date'[Date] <= MAX ( 'Date'[Date] ) )
) > 1
&& CALCULATE(COUNTROWS('Data')) >= 1
)
)I have uploaded a sample workbook here: Sample Workbook
Thank you for your solution--it worked!
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 31 | |
| 26 | |
| 23 | |
| 22 | |
| 15 |
| User | Count |
|---|---|
| 63 | |
| 45 | |
| 28 | |
| 24 | |
| 22 |