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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
TO3
Frequent Visitor

Bring in custom column in new query

Hi Community,

 

I'm stuck and am a newbie to Power Query. I've been digging in the WWW, but to no avail so hoping I can pick your brains.

 

In table A, I have added a custom column with an if statement, the column header is called Amounts as well as the applied step. I have created a 'new blank query' and am trying to bring in various columns from table A with including the custom column, by using the below query

 

#"table A"[[Date],[Name],[custom column]] this errors out when trying to bring in the custom column, however if I remove the custom #"table A"[[Date],[Name]] it brings the called columns.

 

The Amounts column is value format, there are no errors or null values in that column, reference to column header text is exact. 

 

Really appreciate your help, Thanks

 

 

4 REPLIES 4
TO3
Frequent Visitor

Thank you for coming back Dufoq3, still doesn't work. My error says the column doesn't exist strangely. However, I just cloned the table and deleted the rest of the columns

Anonymous
Not applicable

Hi,

Thanks for the solution @dufoq3  provided, and i want to offer some more information for user to refer to.

hello @TO3  you can try the following code.

let
    a = Table.SelectColumns(#"table A",{"Date","Name", "Amounts"})
in
    a

 

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Power Query is case sensitive so be careful because "table A" <> "Table A" and "custom column" <> "Custom Column" etc...


Note: Check this link to learn how to use my query.
Check this link if you don't know how to provide sample data.

dufoq3
Super User
Super User

Hi, it should work. In new query you can just refer to table a so Source = #"table A" and then select columns you want, right click and REMOVE OTHER COLUMNS or you can try

Source = Table.SelectColumns(#"table A", {"Date","Name", "custom column"})

Note: Check this link to learn how to use my query.
Check this link if you don't know how to provide sample data.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors