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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Jay__
Regular Visitor

change data source with new column name in existing pbix file

Hi,

Problem scenerio: a pbix was using mongodb as the data source with 10 columns, now that table has been migrated to hive and all the column names have been renamed, however the values are same in addition 4 new columns have been added to the table.

 

Is there any way to keep using the existing pbix by making the changes in power query editor?

 

kindly help!

 

 

1 REPLY 1
Adamboer
Responsive Resident
Responsive Resident

Yes, it is possible to keep using the existing pbix file by making the necessary changes in Power Query Editor. Here are the steps that you can follow:

  1. Open the existing pbix file in Power BI Desktop.
  2. Go to the "Transform Data" option in the Home tab.
  3. In the Power Query Editor, go to the "Source" step in the Applied Steps pane on the right.
  4. Click on the gear icon to open the "Edit Credentials" window.
  5. Update the connection settings to point to the new Hive table.
  6. Once the new table is loaded into Power Query Editor, you can update the column names by renaming them in the "Transform Data" tab.
  7. To handle the 4 new columns, you can add new steps to your query using the "Add Column" tab and use appropriate transformation logic to manipulate the data.
  8. Once you have made all the necessary changes, save the Power Query Editor and the changes will be reflected in the visuals in the pbix file.

Note: It is recommended to take a backup of the original pbix file before making any changes to it.

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors