Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Good day,
I have a Power Bi Dataset which is extracting data from number of excel files, similar files from different sources. I have changed names of some columns in source file, but structure is the same.
Is there a way to write a line in Advanced editor or similar to keep updating data considering old and new names of same columns?!
THnaks
Aleks
Solved! Go to Solution.
Hello @AleksandrMe
once you merge two tables, the trigger is the column name. So to avoid problems here you have to find a logic to rename your columns before merging. If you have a rigid structure you could create list of the new columns names then apply a RenameColumns-functions that is considering the old names and your new list and nename them.
Another approach could be to create a table with two columns (old and new) and use this information to rename the columns. When using this approach you probably have to filter the table that you use before applying the renaming (that the old-column contains only values that in the table to be renamed are in)
If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too
Have fun
Jimmy
Hello @AleksandrMe
once you merge two tables, the trigger is the column name. So to avoid problems here you have to find a logic to rename your columns before merging. If you have a rigid structure you could create list of the new columns names then apply a RenameColumns-functions that is considering the old names and your new list and nename them.
Another approach could be to create a table with two columns (old and new) and use this information to rename the columns. When using this approach you probably have to filter the table that you use before applying the renaming (that the old-column contains only values that in the table to be renamed are in)
If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too
Have fun
Jimmy
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
27 | |
12 | |
12 | |
11 | |
9 |
User | Count |
---|---|
53 | |
28 | |
17 | |
14 | |
13 |