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
CheanSereyvatan
Frequent Visitor

How to purchasing frequency

Hi team,
Please help me on this point. I have sale record with difference customer. I want to count the customer that purchase for 2 time, 3 times, 4 times, .....

1 REPLY 1
amitchandak
Super User
Super User

@CheanSereyvatan , You have use dynamic segmentation

Dynamic segmentation -Measure to Dimension conversion: https://youtu.be/gzY40NWJpWQ

 

cnt = Count(Table[Customer ID])  is the measure you have used

bucket = Generateseries(1, 100)  will help you create a new table for group by/filter

 

and measure like

countx(filter(Values(Table[Customer ID]),[cnt] = max(Bucket[Value]) ), [Customer ID]  )

 

or

sumx(bucket, calculate(

countx(filter(Values(Table[Customer ID]),[cnt] = max(Bucket[Value]) ), [Customer ID]  ) ))

 

Dynamic Segmentation Bucketing Binning
https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-Segmentation-Bucketing-Binning/m-p/1...


Dynamic Segmentation, Bucketing or Binning: https://youtu.be/CuczXPj0N-k

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.