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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors