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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
kraghavcd
Helper I
Helper I

Which is the best way to rename columns in the dataset?

I have created a report in Power BI and published in an app. It will be used by the end-users in the coming days. Before that, I wanted to change the columns in the underlying dataset to user-friendly names. I want to know which is the best way to change names without disrupting my other measures and calculated columns which are using these column names, should I have to do it from Power Query or in the Fields section? Please help!

1 ACCEPTED SOLUTION
VasTg
Memorable Member
Memorable Member

@kraghavcd 

 

Do you have the model and visuals in a single PBIX file? If so, I would recommend you to change the name either in model or M query. The visuals and measures will automatically take the new name.

 

If you have used PBI dataset as a source to build you visuals, all the visuals will break. I would still recommend to rename the columns in the model and fix your report/visual because you might end up creating more reports on the dataset.

 

If it helps, mark it as a solution
Kudos are nice too

Connect on LinkedIn

View solution in original post

6 REPLIES 6
VasTg
Memorable Member
Memorable Member

@kraghavcd 

 

Do you have the model and visuals in a single PBIX file? If so, I would recommend you to change the name either in model or M query. The visuals and measures will automatically take the new name.

 

If you have used PBI dataset as a source to build you visuals, all the visuals will break. I would still recommend to rename the columns in the model and fix your report/visual because you might end up creating more reports on the dataset.

 

If it helps, mark it as a solution
Kudos are nice too

Connect on LinkedIn
smpa01
Super User
Super User

@kraghavcd  I think a safe way to do it without disrupting any measures

 

is to renaming the field name in the viz window rather than changing it in the PQWRY dataset.

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

@smpa01 Hi, thanks for your reply. But will changing the column names in Viz pane change the column names in my underlying dataset? Since I want the users to create their own reports using the dataset, I want to rename the columns. Thanks!

I do not think it changes the name of the source columns. but if you have use tablename[columnname]  in the column and you rename the table, it might give an error.

Hi @kraghavcd ,

 

Just an additional information that may be used in a good way.

 

There are some things that you make in the front end of PBI that are reflected on the Query editor and the renaming of columns is one of them.

 

If you change the name of the columns on a model on the front end if you go to the advance query editor you can see that the additional step for renaming is created this can be usefull for making sure your measure don't break.

 

There are other steps like deleting columns that are also made on both side simultaneous.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Changing the column names in the viz pane does not change the column names in the dataset.

 

So for a column 1 in 3 different viz you can rename the same column to user friendly names as red, orange, blue.

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors