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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Wayfarer
Helper I
Helper I

Power Query: Programatically Merge Columns?

Hi.

 

I have started working with DataFlows.  The source database I'm currently using is on-prem.  Across this database the keys/identifiers are two-column composites.  To combine these columns in Power Query, I have to go to each entity and manually combine all sets of columns.  You can probably imagine this is time-consuming; has been error-prone (having to specify the separator); and is generally not very sustainable going forward.

 

Does the community have any suggestions about handling this?
Can I programatically implement the merge, such as using a power query function?  I've used a function to programatically create queries from an API source, by passing certain parameters, but I've not really seen how I could use a function to do this.  Perhaps because the function isn't creating a source but modifying/transforming within the entity.

 

Is it something that may be done with DataFactory?  I'm not sure how possible that would be as the database is on-prem.  Otherwise I could build the logic in SSIS; but there's further considerations for me about using SSIS, such as when and how often to update/refresh, and the fact that we're trying to move away from SSIS.

 

Cheers.

1 REPLY 1
amitchandak
Super User
Super User

Refer, if this can help

https://community.powerbi.com/t5/Power-Query/Merge-Queries/m-p/941704

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

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

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.