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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
a68tbird
Resolver II
Resolver II

Counting Repeat Customers Measure to use in Conditional Formatting

Hello all -

  Having some trouble wrapping my head around this.  I would like to count the number of repeat customers in my Orders table. The customer email is the unique value to count.  I want to be able to use this calculation to create a table such as the one represented below:

a68tbird_0-1696442632932.png

The conditional formatting I should be able to figure out, but I'm not sure how to create the DAX for this. It needs to be able to identify repeat emails, and the number of times it repeats.  Filter context for the YEAR should occur in the table - that is, the DAX shouldn't need to consider the year - just the entire Orders table. This way, if I want to look at all years, or drill down to quarters and months, it should still return the relevant results. Will it require five different measures - one for each bin of "# of Orders"? 

 

Any suggestions?

Thanks!

 

1 REPLY 1
amitchandak
Super User
Super User

@a68tbird , First create a measure that will give new, lost or repeat like

 

Customer Retention with Dynamic Segmentation, New/Lost/Retain Customer Count: https://youtu.be/EyL7KMw877Q

 

 

And then you can use count based on segmentation. And you can use the measure to do conditional formatting

 

Learn Power BI Advance - PowerBI Abstract Thesis:
How to do conditional formatting by measure and apply it on pie?
https://www.youtube.com/watch?v=RqBb5eBf_I4&list=PLPaNVDMhUXGYo50Ajmr4SgSV9HIQLxc8L
https://community.powerbi.com/t5/Community-Blog/Power-BI-Conditional-formatting-the-Pie-Visual/ba-p/...
https://amitchandak.medium.com/power-bi-where-is-the-conditional-formatting-option-in-new-format-pan...

 

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
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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