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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.