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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
AfsanehM53
New Member

How can i change the table and field names used in a measure dynamically?

Hi everybody,

 

I have a Power BI dashboard, with Dim and Fact tables and a table of measures that all comes from SQL Database.  I need to use the existing template with another SQL server and Database. The table names and some of the field names in the new SQL Database is different from the original source SQL Database.

 

Is there a way that I can dynamically change the name of tables and fields that I have used in the measures?  Currently I have to go and manually chnge table and field names in every measure.  Any help would be appreciated.

 

Thanks,

Afsaneh

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@AfsanehM53 ,

 

Unfortunately, you can not change in one go.

You should consider changing it manually one by one.

 

Appreciate your kudos !! Mark this post as solution if this helps you.

View solution in original post

3 REPLIES 3
Greg_Deckler
Super User
Super User

@AfsanehM53 Can you not just rename the tables and field names to the old names when importing the data? 


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Thanks for the response.

 

No I need to use the same template for another region. This means they have different terminologies that should be used in the dashboard, e.g. my field is called Supplier but I should replace it with Vendor.

Anonymous
Not applicable

@AfsanehM53 ,

 

Unfortunately, you can not change in one go.

You should consider changing it manually one by one.

 

Appreciate your kudos !! Mark this post as solution if this helps you.

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

July Newsletter

Fabric Community Update - July 2024

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