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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
vat2do
Helper II
Helper II

How to edit multiple cells in a column

Hope you have a good day,

 

I have a column with different values, how i can edit multiple cells in a column using edit query in Power BI

 

For Example i have below column:

Category
brown
yellow
blue
light blue
brown
light brown
light blue

 

I need below output:

Category
Brown
Yellow
Blue
Blue
Brown
Brown
Blue

 

Thanks in Avance

2 ACCEPTED SOLUTIONS
v-easonf-msft
Community Support
Community Support

Hi, @vat2do 

If you are not good at coding, you can also try the buttons on the visual interface.

Please try following steps:

1. Select column 'Category' ->go to 'Transform' ->replace Values

Replace Value 'light ' with Value ''

veasonfmsft_1-1661913887278.png

2. go to 'Transform' ->'Format' ->'Capitalize each word'

veasonfmsft_3-1661914108358.png

Result:

veasonfmsft_4-1661914203367.png

 

Best Regards,
Community Support Team _ Eason
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

@v-rzhou-msft Hi Rico My earlier proposed solution is not worked??

View solution in original post

5 REPLIES 5
v-easonf-msft
Community Support
Community Support

Hi, @vat2do 

If you are not good at coding, you can also try the buttons on the visual interface.

Please try following steps:

1. Select column 'Category' ->go to 'Transform' ->replace Values

Replace Value 'light ' with Value ''

veasonfmsft_1-1661913887278.png

2. go to 'Transform' ->'Format' ->'Capitalize each word'

veasonfmsft_3-1661914108358.png

Result:

veasonfmsft_4-1661914203367.png

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

vat2do
Helper II
Helper II

Your solution is in DAX or some other language

In power Query, not in Dax.

ddpl
Solution Sage
Solution Sage

@vat2do In power query first select column and replace "light " with blank 

Then transform the column by category "capitalize each word"

 

let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WSirKL89TitWJVqpMzcnJLwczk3JKU8GMnMz0jBIFOBehGCqBzgcrjAUA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Category = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Category", type text}}),
#"Replaced Value" = Table.ReplaceValue(#"Changed Type","light ","",Replacer.ReplaceText,{"Category"}),
#"Capitalized Each Word" = Table.TransformColumns(#"Replaced Value",{{"Category", Text.Proper, type text}})
in
#"Capitalized Each Word" 

@v-rzhou-msft Hi Rico My earlier proposed solution is not worked??

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.