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
Harleyquinxz
New Member

get the # in common, and then the % in common between the two from the distinct customers

Hi, I have a table like this -

 

unknown (3).png

And I want to find the count of common customers between a store pair, like this :

 

unknown (4).png

I'm looking to get the # in common, and then the % in common between the two from the distinct customers for the pair example for the %, store a has 5 customers, store b has 4, they have 1 in common, so 8 distinct customers for the pair, (1/8)*100 for % in common

 
1 ACCEPTED SOLUTION
Rayshin
Memorable Member
Memorable Member

@Harleyquinxz 

 

hmm if i remember correctly, you need to reference copy the original table, make a relationship from customer id to customer id, put table1.store id as columns, table2.store id's as rows and use distinctcount(table2.customer id) as values.

View solution in original post

2 REPLIES 2
Rayshin
Memorable Member
Memorable Member

@Harleyquinxz 

 

hmm if i remember correctly, you need to reference copy the original table, make a relationship from customer id to customer id, put table1.store id as columns, table2.store id's as rows and use distinctcount(table2.customer id) as values.

It's worked. Thanks so much.

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