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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Segmenting customers by count of visits

Dear all,

Iam new to DAX and i request help of the community in creating a measure.

 

Facts:

I have a sales table with transaction number, date, product key (item code) & customer ID. This table is related to date table, customer master & product master (one to many).

Krishnatejap_0-1670921459917.png

 

Objective:

Segment customers by count of visits (dynamic segmentation - should be filted by time, geography & product). Segment table is provided below (Cust-Date Key column in the above sales table is the reference to calculate the count of visits). 

Krishnatejap_1-1670921650333.png

 

Thanks in advance!

 

2 REPLIES 2
TomMartens
Super User
Super User

Hey @Anonymous ,

 

I recommend reading these two articles

Hopefully, this gets you started. If you need more help create a pbix file that contains sample data, but still reflects your data model (tables, relationships, calculated columns, and measures). Upload the file to onedrive, google drive, or dropbox and share the link. If you are using Excel to create the sample data, share the Excel file as well.

 

Regards,

Tom

 



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany
Anonymous
Not applicable

Hi Tom,

 

Thank you for the quick reply.

I did read the articles you mentioned few days back and applied the DAX for dyanamically segmenting the sales value (based on slabs). However, iam unable to modify/create DAX for computing the visits of customers.

 

I have uploaded sample file in google drive with below link:

https://drive.google.com/file/d/1g7rnbdKZ6f2BDbpfrO2PCKM4tvADmNpr/view?usp=share_link

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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
Top Kudoed Authors