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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Duplicating a New Column in Power Query

Hello, 

 

I am working on data set that is imported via Salesforce Objects into Power Query. On one of my queries I'll have a table that has a column for Department Owner. Then I'll create another table for a different report within the same Power Query but this table will not have a column for Deptartment Owner.

Is it possible to create a new column for Department Owner on this new table, auto filling in or matching the User to their correct department? 

 

I would be more than happy to provide additonal information or demonstrate. 

 

Thank you!! 

1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

According to your description, here's my solution. My sample data is as below.

Table :

vyanjiangmsft_0-1686559047913.png

User table:

vyanjiangmsft_1-1686559077020.png

Solution1:

Select the User column in User table, then click "Merge Queries"

vyanjiangmsft_2-1686559204205.png

Select User column in another table.

vyanjiangmsft_3-1686559260962.png

In the result column, expand Department column.

vyanjiangmsft_4-1686559319862.png

Solution2:

Add a custom column:

Table.SelectRows(#"Table", (x)=> x[User]=[User])[Department]{0}

Both get correct result:

vyanjiangmsft_5-1686559398350.png

I attach my sample below for your reference.

 

Best regards,

Community Support Team_yanjiang

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

3 REPLIES 3
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

According to your description, here's my solution. My sample data is as below.

Table :

vyanjiangmsft_0-1686559047913.png

User table:

vyanjiangmsft_1-1686559077020.png

Solution1:

Select the User column in User table, then click "Merge Queries"

vyanjiangmsft_2-1686559204205.png

Select User column in another table.

vyanjiangmsft_3-1686559260962.png

In the result column, expand Department column.

vyanjiangmsft_4-1686559319862.png

Solution2:

Add a custom column:

Table.SelectRows(#"Table", (x)=> x[User]=[User])[Department]{0}

Both get correct result:

vyanjiangmsft_5-1686559398350.png

I attach my sample below for your reference.

 

Best regards,

Community Support Team_yanjiang

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

RocketRod
Frequent Visitor

Yes, can merge the tables to add the column into the new table, or write M code to do it if lookup logic is complex.

Anonymous
Not applicable

Hi RocketRod, 

 

Are you available to provide further support? This would be a huge help for me so I can move forward with this roadblock. 

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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