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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
bendsteel6
Helper I
Helper I

Power BI Query - Using "&" in a variable name in Power Query

Hi, 

I have an instance in a Power Query where I'm trying to read in a field that has an ampersand (&) in it.  I can't get around this as this is how it's name in the data source.  I've read many posts online and nothing seems to work.

 

select ...

,r.4oa_wheel_style_front

,r.0bx_wheel_type_drive

,r.02x_wheel_&_tire_diameter_drive

,r.01x_wheel_&_tire_diameter_front

from...

 

Is there any way around this?

 

Thanks!

2 REPLIES 2
bendsteel6
Helper I
Helper I

Hi,

I got it working using the 'single quote' from the tilde key (upper left on the keyboard) as opposed to the single-quote, double-quote key.  The #"" was not working.

 

Thanks for your response anyway.

lbendlin
Super User
Super User

This is SQL code.  What does your Power Query code look like?  Funny characters are escaped via #"", so for example 

 

#"01x_wheel_&_tire_diameter_front"

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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