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
zanottiluca
Helper II
Helper II

id duplicate due to case sensitive

Dear gurus, 

 

I am fairly new to Power Bi and I have the following issue.

 

I am encountering the error "Column CC1ID" in table "T1" contains a duplicate value 121212Oklahoma and this is not allowed on column on the one side of the 1 to M relationship. 

Tracing back the records in the Edit query I have spotted that despite grouping and removing duplicates  i end up wih two entries: 

121212Oklahoma and 121212OKLAHOMA result of a case sensititve problem. Now the problem would be easily  work-arounded by using the functions Lower() Upper() in the editor.

However i wonder if this problem is more due because we are entiring in the World of DAX when try to build the relationship (with consequent case sensitivity thrown in the bin) or other. 

 

Thanks a lot in advance for your help.

 

Luca

Any document, links or explanation is more than accceptable as i need mainly to figure out the reason behind this. 

1 ACCEPTED SOLUTION
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @zanottiluca,

 

Power BI Desktop's query editor and M language is case-sensitive while Power BI Desktop's data model and DAX language is not case-sensitive. Someone has submitted this problem here, you could click to vote it up.

 

Workaround is to create a surrogate key like described here:

Create a Dimension Table with Power Query: Avoid the case sensitivity bug!

Case Sensitive relationships

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @zanottiluca,

 

Power BI Desktop's query editor and M language is case-sensitive while Power BI Desktop's data model and DAX language is not case-sensitive. Someone has submitted this problem here, you could click to vote it up.

 

Workaround is to create a surrogate key like described here:

Create a Dimension Table with Power Query: Avoid the case sensitivity bug!

Case Sensitive relationships

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks Yuliana for the reply and for the link/clarification , much appreciated. 

 

I have voted the idea indeed. 

 

Thanks again

Luca

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