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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Need guidance for finding Recency and Frequency

Hi I'm a newbie learning how to use power BI . My self study  assignment was to find out both the recency of a customer that made their purchase at the store and also the frequency of customer whom return to purchase in store. Do appreciate that some advance user may guide me through step by step. Thank you .power bi data.JPGpower bi help.JPG

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

Could you tell me if your problem has been solved?
If it is, kindly Accept it as the solution. More people will benefit from it.
Or you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file from your Onedrive for Business.


Best Regards,
Stephen Tao

Anonymous
Not applicable

Hi @Anonymous ,

 

1.Here's my sample data.

24.png

 

2.Create a calculated column to get the distance interval.

Distance interval = DATEDIFF(CALCULATE(MIN('Table'[Date]),ALLEXCEPT('Table','Table'[Customer])),CALCULATE(MAX('Table'[Date]),ALLEXCEPT('Table','Table'[Customer])),DAY)

25.png

 

3.Create measures.

Number of intervals = CALCULATE(COUNT('Table'[Customer]),FILTER('Table',[Customer]=MAX('Table'[Customer])&&[Distance interval]=MAX('Table'[Distance interval])))
Recency = DIVIDE([Number of intervals], CALCULATE(COUNTROWS('Table'),ALLEXCEPT('Table','Table'[Shop])))
Frequency = DIVIDE(CALCULATE(DISTINCTCOUNT('Table'[Customer]),FILTER('Table',[Distance interval]<>0)), CALCULATE(COUNTROWS('Table'),ALLEXCEPT('Table','Table'[Shop])))

 1.png

 

You can check more details from here.

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.

Top Solution Authors