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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
sarahshh
New Member

Power Query imports columns in UPPERCASE from Snowflake

Hello,
I’m importing data from Snowflake in Power Query (PowerBI) via a SQL query and I get all columns imported as UPPERCASE although my query specified a mix of lowercase and uppercase (ex: SELECT “My_Column” FROM my_table). How to change this without having to rename them all individually in Power Query?

Thanks!

2 ACCEPTED SOLUTIONS

Oh sorry, I thought you meant the values and not the headers.

For the column headers please use the Advance Editor

 

add the following line of code to convert all column names to lowercase:

#"Renamed Columns" = Table.TransformColumnNames(#"Previous Step", Text.Lower)
 
Did I answer your question? Mark my post as a solution!

 

View solution in original post

Hi @sarahshh ,

 

@MattiaFratello 's solution works for any text transformation so, if by "a mix of lowercase and uppercase" you mean capitalised words with spaces between them, you can use Text.Proper instead of Text.Lower. If your headers are in camel/snake case etc. then yes, unfortunately this won't work for you.

Note that DAX is case-insensitive when it comes to column names in measures etc. so it shouldn't affect any modeling if you choose to just let the column names pass through to the model as-is from source.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




View solution in original post

7 REPLIES 7
MattiaFratello
Resolver I
Resolver I

Hi @sarahshh, have you tried to use Transform -> Format?

MattiaFratello_0-1738239415372.png

 

Did I answer your question? Mark my post as a solution!

no it doesn't work, it converts the values inside the column, not the names of the columns

Oh sorry, I thought you meant the values and not the headers.

For the column headers please use the Advance Editor

 

add the following line of code to convert all column names to lowercase:

#"Renamed Columns" = Table.TransformColumnNames(#"Previous Step", Text.Lower)
 
Did I answer your question? Mark my post as a solution!

 

yes, this works to change to lowercase, the only problem is that my headers are a mix of lowercase and uppercase and I can't keep this without renaming them individually. 

What I'm trying to do is replacing an old table with a new one (from Snowflake) and I want to keep the exact same headers not to break anything in applied steps or visuals.

Hi @sarahshh ,

 

@MattiaFratello 's solution works for any text transformation so, if by "a mix of lowercase and uppercase" you mean capitalised words with spaces between them, you can use Text.Proper instead of Text.Lower. If your headers are in camel/snake case etc. then yes, unfortunately this won't work for you.

Note that DAX is case-insensitive when it comes to column names in measures etc. so it shouldn't affect any modeling if you choose to just let the column names pass through to the model as-is from source.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




yes it's more camel/snake case. At least this won't break my model so thank you for the confirmation!

BA_Pete
Super User
Super User

Hi @sarahshh ,

 

I don't think you can.

IIRC, Impala does exactly the same, it's just the nature of the connector.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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