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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors