Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Jameswh91
Helper III
Helper III

New Customers with multiple purchasers in a set time period e.g a year, numbers of repeat purchasers

Hi, i'm looking to create a calculation that shows over the course of the financial year how many customers we have who have made repeat purchases. This would be split into, new customers in the financial year making multiple purchases and retuning customers who make multiple purchases. What would be perfect is if could filter the products based on the numbers of these customers to see how many orders included the products and how much money was spent.

 

For the customers, my desired layout would look like the below:

 

Date                  New Customers                 New Customers (multiple)    Returning Customer         Returning Customer (multiple)

2021                    1620                                        214                                                        100                           20

 

 

Any help would be very much appreciated!

1 REPLY 1
ImkeF
Community Champion
Community Champion

Hi @Jameswh91 ,
this is a perfect use case for the new window functions: Introducing DAX Window Functions (Part 1) – pbidax (wordpress.com)
If you cannot make it work after reading that article, please paste proper sample data and description of the desired result: 

help how to get your questions answered quickly - Microsoft Power BI Community 

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.