Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
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).
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).
Thanks in advance!
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
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
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.