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
admin11
Memorable Member
Memorable Member

Rank expression for CUSTOMER NAME get error ?

Hi All

 

I have create a expression :-

rank = RANKX('summrizeTable2','summrizeTable2'[sum],,ASC)
 
I get error msg :-
Column '' in Table '' contains a duplicate value '3' and this is not allowed for columns on the one side of a many-to-one relationship or for columns that are used as the primary key of a table.
 
Can some one share with me where go wrong ?
 
admin11_0-1642629711379.png

 

I also created another expression similar :-

rank = RANKX('summrizeTable1','summrizeTable1'[sum],,DESC)
 
I don't get any error msg :-
1 ACCEPTED SOLUTION
VahidDM
Super User
Super User

Hi @admin11 

 

Change the relationship between summrizeTable2 and summrizeTable1 to the many to many and it will work then.

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

View solution in original post

2 REPLIES 2
VahidDM
Super User
Super User

Hi @admin11 

 

Change the relationship between summrizeTable2 and summrizeTable1 to the many to many and it will work then.

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

@VahidDM 

This issue trouble last few day , today i learn some thing new. thank you

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