Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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
Solved! Go to Solution.
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 ''
2. go to 'Transform' ->'Format' ->'Capitalize each word'
Result:
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.
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 ''
2. go to 'Transform' ->'Format' ->'Capitalize each word'
Result:
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.
Your solution is in DAX or some other language
In power Query, not in Dax.
@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"
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
84 | |
69 | |
68 | |
39 | |
37 |