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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
franorio
Helper III
Helper III

Identify Returning/frequently Customers + Rank/Basket Analysis in last orders

Hello everybody,

In my Report I have done a Basket Analysis by duplicating my product table for a double filtering.

Also used RANKX formula to see the Top N products bought for each category (over 1000 products) 

 

I don't have a Client ID dataset, the only data I have from the client is the Email adress associated to the #salesorder from my fact table. 

How can I identify frequent or returning clients (by email, if the email appears more than once) to apply my rank & basket analysis just for the orders of clients who are buying frequently?

 

Trying to identify purchase trends, if client X buys frequently on the webpage, i would like to see.. if they bought product A, the first time, what are they buying on next orders, do they also bought Product A again, or which other products are they buying on their new orders. 

 

Thanks & regards!

2 REPLIES 2
MFelix
Super User
Super User

Hi @franorio,

 

Why don't you do a RANKX based on the count of the e-mail address something like:

 

Rank = RANKX(ALLSELECTED(Table1[Email]),CALCULATE(COUNTA(Table1[Email])))

This will give you something like this.

 

Ranking.png

 

Regards,

MFelix

 

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português





spuder
Resolver IV
Resolver IV

Hi,

 

could you post a "result table" you would like to have.

 

One thing that comes in my mind for your second part could be CONCATENATEX that would give you a list of all products bought behind the email address. 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.