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

Header mapping

Hi,

I have source data, which comes with different column names monthly. I need to map the headers as per my master table. 
The master table has the standard field names (in Column 1) and the the field name from the source data (in Column 2).
I need to map or change my headers as per my master data. 

Please advise how can we achieve this on powerbi

Source DATA

INV NumberINV DateInvoice Desc
INV00120/04/2022Desktop Sales
INV00220/04/2022Export Goods

 

Master Mapping Table

Standard ColumnRaw Data Fields
Invoice_NumberINV Number
Invoice_DateINV Date
Invoice_DescriptionInvoice Desc
1 REPLY 1
HotChilli
Community Champion
Community Champion

There is a power query function Table.RenameColumns  which can do this in one stage.  The easiest usage will be to hardcode the column replacement names in the function call rather than retrieve the names from a table but you can probably do that too .

https://docs.microsoft.com/en-us/powerquery-m/table-renamecolumns 

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.