Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe'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
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 Number | INV Date | Invoice Desc |
| INV001 | 20/04/2022 | Desktop Sales |
| INV002 | 20/04/2022 | Export Goods |
Master Mapping Table
| Standard Column | Raw Data Fields |
| Invoice_Number | INV Number |
| Invoice_Date | INV Date |
| Invoice_Description | Invoice Desc |
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
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 39 | |
| 35 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 73 | |
| 73 | |
| 38 | |
| 35 | |
| 26 |