Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
18 | |
15 | |
13 | |
8 | |
8 |