The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi All,
I have a list of numbers (stored as texts) that are semi colon sepearated and I need specific 3 digit values removed. Is there any Power Query that can do this? Here is what I have and what I need.
Have | Want |
90832 | 90832 |
99213 | 99213 |
99213 | 99213 |
99213 | 99213 |
99214 | 99214 |
99214 | 99214 |
636 90750 ; 771 90471 | 90750 ; 90471 |
99213 | 99213 |
99214 | 99214 |
914 90791 | 90791 |
99214 | 99214 |
636 90674 ; 771 90471 | 90674 ; 90471 |
99214 | 99214 |
99214 | 99214 |
301 80050 ; 301 80061 ; 301 82607 ; 780 Q3014 | 80050 ; 80061 ; 82607 ; Q3014 |
Solved! Go to Solution.
@Alexjaco2 Maybe this?
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("fc2xDYAwDATAVazUFO/Y2ImYgjrK/mvgIGiiQHey/P+tpYoiOfUtVDPLr3SSiVGF76CD3Dmszt851vFdedlirsuWeVPAVIB787Hx62zw0VJAZxwi0S8=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Have = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Have", type text}}),
#"Added Custom" = Table.AddColumn(#"Changed Type", "Custom", each Text.Combine(List.Select(Text.Split([Have], " "), each Text.Length(_) <> 3)))
in
#"Added Custom"
That works! Thanks!
@Alexjaco2 Maybe this?
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("fc2xDYAwDATAVazUFO/Y2ImYgjrK/mvgIGiiQHey/P+tpYoiOfUtVDPLr3SSiVGF76CD3Dmszt851vFdedlirsuWeVPAVIB787Hx62zw0VJAZxwi0S8=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Have = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Have", type text}}),
#"Added Custom" = Table.AddColumn(#"Changed Type", "Custom", each Text.Combine(List.Select(Text.Split([Have], " "), each Text.Length(_) <> 3)))
in
#"Added Custom"