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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
Anonymous
Not applicable

M code in Power query Custom Column created not consistent

Hi All

 

This one is doing my head in. 

 

Custom Column 1 -> I created a Custom Column in Power Query Editor where the "SupplierCode" from another table (DimmSupplier for Lookup-EDI) is looked up and added into the table where the SupplierCode = SupplierID.  Works just fine

 

Custom Column 2 ->So now I want to do the same between two other tables and  I get the "Token Equal expected" error message.

 

I know it is going to be something silly, but I just cannot figure it out.

 

Any help or another way of doing it will be appreciated.

 

DeonDP_0-1603857928049.png

 

1 ACCEPTED SOLUTION
wdx223_Daniel
Community Champion
Community Champion

@Anonymous  variant name can not include space, if you do need a space in the name ,try to bracket it in #"", such as #"Var Name"

View solution in original post

2 REPLIES 2
wdx223_Daniel
Community Champion
Community Champion

@Anonymous  variant name can not include space, if you do need a space in the name ,try to bracket it in #"", such as #"Var Name"

Anonymous
Not applicable

Awesome!! You are DA MAN DAN!! Working just fine now.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.