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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
edhans
Super User
Super User

Any pitfalls in using Text.Upper before selecting a table in Power Query?

We've been using our ERP package for decades. It runs on SQL Server. Sometime since our original databases were created for a given company (database in SQL) and last week when I needed to create a new company, they changed the case of about 90% of the table names, so simply changing the database doesn't work, as selecting the table is case sensitive in Power Query.

 

But it seems that I can take the table listing SQL Server initailly passes and do Text.Upper, nothihng changes in the native query that is sent to the SQL Server. I just have an extra step. 

 

select [trx_type]
from [dbo].[APADJTRX_SQL] as [$Table]

Before I change my templates though to force upper case on table names, I wanted to see if anyone knew of a pitfall of doing any kind of modeling before actual table selection.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting
1 ACCEPTED SOLUTION
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @edhans,

 

Based on my test, Text.Upper function returns the uppercase of each row value for a specific column. It cannot convert the case of table name.

 

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 @edhans,

 

Based on my test, Text.Upper function returns the uppercase of each row value for a specific column. It cannot convert the case of table name.

 

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.

Hrm... you are right. I can change the case of the table name in the [Name] column when browsing tables, but when I actually select the table, the 

= #"Uppercased Text"{[Schema="dbo",Item="AWBuildVersion"]}[Data]

statement pulls the original name case. Thanks.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors
Top Kudoed Authors