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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Employee
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
Employee
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors