Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
The name of my fields are all like "Brand1", "Model1", "Color1".
How do I remove that last 1 from ALL the fields, possibly with a single Power Query instruction?
Solved! Go to Solution.
Insert this statement
= Table.TransformColumnNames(Source,(x)=>Text.TrimEnd(x,"1"))See the working here - Open a blank query - Home - Advanced Editor - Remove everything from there and paste the below code to test
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WSlTSUUoC4mQgTgHiVCBOU4qNBQA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Brand2 = _t, Brand1 = _t, Model1 = _t, Color1 = _t, Test2 = _t, Test1 = _t]),
Custom1 = Table.TransformColumnNames(Source,(x)=>Text.TrimEnd(x,"1"))
in
Custom1
Insert this statement
= Table.TransformColumnNames(Source,(x)=>Text.TrimEnd(x,"1"))See the working here - Open a blank query - Home - Advanced Editor - Remove everything from there and paste the below code to test
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WSlTSUUoC4mQgTgHiVCBOU4qNBQA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Brand2 = _t, Brand1 = _t, Model1 = _t, Color1 = _t, Test2 = _t, Test1 = _t]),
Custom1 = Table.TransformColumnNames(Source,(x)=>Text.TrimEnd(x,"1"))
in
Custom1
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 10 | |
| 9 | |
| 6 | |
| 5 | |
| 3 |