Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
Data source:
SQLEXPRESS
I have a database in Microsoft SQL Express I want to extract values from; however, Power BI edits the data and creates duplications that breaks my data-model.
Relevant primary key values in Microsoft SQL database:
jUMAAALfrtVzQA
juMAAALfrtVzQA
Power Query with SQL Server connection changes this to:
jUMAAALfrtVzQA
jUMAAALfrtVzQA
For some reason, the "u" in the database table becomes "U" in Power Query hence editing the input from the database table.
Anyone know how to fix this?
Solved! Go to Solution.
DAX is not case-sensitive (Power Query is though) and it's picking one representative between the two "duplicate" values.
See this prior thread for more detail:
https://community.powerbi.com/t5/Desktop/Single-character-in-Text-field-changing-from-upper-to-lower...
In this situation, I would probably create an index to use as a key instead of [puid] across all the relevant tables or transform the key in all tables to ensure uniqueness.
On possible transformation for the latter might be to tag each character as lowercase or uppercase with a symbol. For example, "juMA" --> "-j-u+M+A" and "jUMA" --> "-j+U+M+A". These will stay distinct regardless of case sensitivity.
Thank you for the quick reply @AlexisOlson ! The cases look related, but I am struggeling to see how I can proceed if this is default.
What is the reason for Power BI to do this? And why can I not choose if I want this edit? I have a large dataset and if this is default I cannot trust the data when the primary key is changed - even if there are different values elsewhere in the table.
This is an extract from SQL on the two values:
As you can see, these are clearly not duplicates.
As I want to relate the "puid" to other tables with relevant information, I need to preserve these values.
@AlexisOlson - I saw you proposed workaround, but I don't understand how to test it. Could you please advise?
In this situation, I would probably create an index to use as a key instead of [puid] across all the relevant tables or transform the key in all tables to ensure uniqueness.
On possible transformation for the latter might be to tag each character as lowercase or uppercase with a symbol. For example, "juMA" --> "-j-u+M+A" and "jUMA" --> "-j+U+M+A". These will stay distinct regardless of case sensitivity.
DAX is not case-sensitive (Power Query is though) and it's picking one representative between the two "duplicate" values.
See this prior thread for more detail:
https://community.powerbi.com/t5/Desktop/Single-character-in-Text-field-changing-from-upper-to-lower...
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 10 | |
| 6 | |
| 5 | |
| 4 | |
| 2 |