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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
_Ester_
Helper I
Helper I

Transitioning a Power BI Project from Static Files to Auto-Updated Data Source

Hello all!

I’ve created a report in Power BI using two CSV files as the data source to track customer purchases from an e-commerce platform.

Recently, I figured out how to directly connect to the e-commerce platform (Shopify) via API, so that the data can update automatically.
However, I noticed that the columns in the new tables have different headers compared to the original CSV files, which causes an issue with the existing DAX formulas, as they won’t match the new column names.

Given the complexity of the project and the number of DAX formulas involved, I’m wondering what the most efficient way is to transition from the current project (based on static CSV files) to the new project connected directly to the e-commerce platform, avoiding unnecessary steps.

The two main options I’m considering are:

  1. Create a new project with the new data source and manually update all the DAX formulas with the new column names.
  2. Import the new data source into the existing project and rename the new columns to match the old ones, so the DAX formulas will continue to work without changes.

    Which approach would you recommend to minimize the workload and reduce the risk of errors? 
    Is there a way to do it right?

Thanks a lot!

1 ACCEPTED SOLUTION
SamWiseOwl
Super User
Super User

Hi @_Ester_ 

My lazy brain wants to choose option 2. Create the new connection and then copy all the M steps into the Advanced editor of the new connection. The issue is if the names change again you'd need to go through the process again. I think it will be a combination of this to do the M transfer and then some of option 1 to change the DAX measures.

 

However option 1 can be done easier than you might think. Or at least updating all the measures doesn't need to be so awful.

I need to update all these measure:

SamWiseOwl_0-1727099221452.png

In the DAX queries view

SamWiseOwl_1-1727099245313.png

 

Click on your measure and choose Define all measures in this model

SamWiseOwl_2-1727099275242.png

Use Ctrl + H to open the find and replace. Enter the old name and new one:

SamWiseOwl_3-1727099328220.png

 

Finally click on Update model with changes:

SamWiseOwl_4-1727099360781.png

All your measures should now work 🙂

SamWiseOwl_5-1727099395798.png

 

 


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

View solution in original post

2 REPLIES 2
SamWiseOwl
Super User
Super User

Hi @_Ester_ 

My lazy brain wants to choose option 2. Create the new connection and then copy all the M steps into the Advanced editor of the new connection. The issue is if the names change again you'd need to go through the process again. I think it will be a combination of this to do the M transfer and then some of option 1 to change the DAX measures.

 

However option 1 can be done easier than you might think. Or at least updating all the measures doesn't need to be so awful.

I need to update all these measure:

SamWiseOwl_0-1727099221452.png

In the DAX queries view

SamWiseOwl_1-1727099245313.png

 

Click on your measure and choose Define all measures in this model

SamWiseOwl_2-1727099275242.png

Use Ctrl + H to open the find and replace. Enter the old name and new one:

SamWiseOwl_3-1727099328220.png

 

Finally click on Update model with changes:

SamWiseOwl_4-1727099360781.png

All your measures should now work 🙂

SamWiseOwl_5-1727099395798.png

 

 


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

Thanks @SamWiseOwl
I had never tried this Power BI feature before and I didn't know it could be so useful!

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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