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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Rename all row values of a data-set in a single column to the same name .

Hello,

 

Could you please offer any suggestion about how to rename all of the row vlaues in a single column to the same name?

For example,  for a data-set in PowerBI, in the column X, all of the row values will be named as Y.

 

Thank you! 

Rahat

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Try this:

= Table.AddColumn(#"Removed Columns", "Custom", each if [Name] <> "" then "Gateway" else "")

null.PNG

 

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
amitchandak
Super User
Super User

@Anonymous , Not very clear. If you want to replace a value you have an option in edit query/data transformation for replacing the value

https://yodalearning.com/tutorials/learn-how-replace-values-power-query/

https://www.youtube.com/watch?v=UZQ9EFvEECY

https://www.youtube.com/watch?v=MLrRlPh_ZFQ

 

If you need a static value, You can create a new column

 

New Column = "Y"

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi Amit,

 

Pretty close 🙂 

 

Actually the replace is pretty much like what is stated in the screenshot.Screenshot (36).png

Icey
Community Support
Community Support

Hi @Anonymous ,

 

Try this:

= Table.AddColumn(#"Removed Columns", "Custom", each if [Name] <> "" then "Gateway" else "")

null.PNG

 

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Thanks, Icey! 🙂

mahoneypat
Microsoft Employee
Microsoft Employee

Not sure if this is what you mean, but you can just add a custom column and in the pop-up formula box put = "Y", and then rename that new column to "X".  And delete the original column that you intended to replace with Ys.

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


lbendlin
Super User
Super User

Why?  How is that different from deleting the row?

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.