Showing results for 
Search instead for 
Did you mean: 

Display case sensitive values in DirectQuery PowerBi

Sql Query - 



CREATE TABLE dbo.abctest (
    id int,
    [name] varchar(20)

insert into abctest(id, [name]) values (1, 'tree');
insert into abctest(id, [name]) values (2, 'Tree');
insert into abctest(id, [name]) values (3, 'TRee');
insert into abctest(id, [name]) values (4, 'tReE');



I am trying to create a DirectQuery PowerBi report, I am unable to preserve cases. All 4 values gets displayed as same.

I tried this solution - 
Chris Webb's BI Blog: Power BI And Case Sensitivity Chris Webb's BI Blog (
It didn't work, as the queries convert to import mode.

I  tried this as well-
Create a Dimension Table with Power Query: Avoid the case sensitivity bug! – The BIccountant
But the issue remained, not sure why this is a recommended solution on many questions, Am I doing something wrong (What Am I supposed to do after creating "MyNewFactTable"? What does it mean by "Make sure to use the new “Index”-columns as your keys in your model."?)

Can anyone help please?

Community Support
Community Support

Hi  @sipati ,


You can try to select "query settings" in the right pane in power query, delete the "uppercase text" step, or go to the advanced editor to delete such information

#"Uppercased Text" = Table.TransformColumns(#"Changed Type",{{"Contract ID", Text.Upper, type text}})


There are also similar questions for you to check. I hope it can help you:


Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi, Thanks for the reply. I don't have such steps which is manipulating the cases, I want to preserve the cases and display them as it is, but powerbi is unable to -


Also, the actual field is going to be 50 characters long, so it is not possible to compare each character and append zero-width space for each lowercase/uppercase character to manipulate without changing storage mode to import (as Power Query might not support directquery)

Helpful resources

PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Top Solution Authors
Top Kudoed Authors