This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
Hi, everyone
need some help
I have a table where a column needs to be converted to Power Query
what is the best solution?
from like this
in like this
thanks
Solved! Go to Solution.
hI
BASE:three
Output result:
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45W8tY1NDI2MTVTitWJVvIt0ivOrCgBsw1NrEwMISwjK0Moy9TKyACN5YJmgFtmWSpEiRkRBsQCAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [A = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"A", type text}}),
#"Added Custom" = Table.AddColumn(#"Changed Type", "Anew", each if Text.Middle([A],1,1)="-" then [A] else null),
#"Added Custom1" = Table.AddColumn(#"Added Custom", "Bnew", each if Text.Middle([A],0,2)="Mr" then [A] else null),
#"Added Custom2" = Table.AddColumn(#"Added Custom1", "Cnew", each if Text.Middle([A],2,1)=":" then [A] else null),
#"Filled Down" = Table.FillDown(#"Added Custom2",{"Anew", "Bnew"}),
#"Filtered Rows" = Table.SelectRows(#"Filled Down", each ([Cnew] <> null)),
#"Removed Columns" = Table.RemoveColumns(#"Filtered Rows",{"A"})
in
#"Removed Columns"
Best Regards
Lucien
hI
BASE:three
Output result:
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45W8tY1NDI2MTVTitWJVvIt0ivOrCgBsw1NrEwMISwjK0Moy9TKyACN5YJmgFtmWSpEiRkRBsQCAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [A = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"A", type text}}),
#"Added Custom" = Table.AddColumn(#"Changed Type", "Anew", each if Text.Middle([A],1,1)="-" then [A] else null),
#"Added Custom1" = Table.AddColumn(#"Added Custom", "Bnew", each if Text.Middle([A],0,2)="Mr" then [A] else null),
#"Added Custom2" = Table.AddColumn(#"Added Custom1", "Cnew", each if Text.Middle([A],2,1)=":" then [A] else null),
#"Filled Down" = Table.FillDown(#"Added Custom2",{"Anew", "Bnew"}),
#"Filtered Rows" = Table.SelectRows(#"Filled Down", each ([Cnew] <> null)),
#"Removed Columns" = Table.RemoveColumns(#"Filtered Rows",{"A"})
in
#"Removed Columns"
Best Regards
Lucien
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 25 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 61 | |
| 49 | |
| 28 | |
| 23 | |
| 23 |