Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi!
I need to remove lines from my data that has less than 9 characters on it. How can I do it?
Thanks!
Solved! Go to Solution.
Hi @Anonymous ,
Please refer to my sample.
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WSoQDpVgdJC6MB6GhPFQlUHWxAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type text}}),
#"Removed length less than 9" = Table.SelectRows(
#"Changed Type",
each not List.IsEmpty(
List.RemoveMatchingItems(
{Text.Length([Column1])}, {0..8}
)
)
)
in
#"Removed length less than 9"
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Please refer to my sample.
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WSoQDpVgdJC6MB6GhPFQlUHWxAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type text}}),
#"Removed length less than 9" = Table.SelectRows(
#"Changed Type",
each not List.IsEmpty(
List.RemoveMatchingItems(
{Text.Length([Column1])}, {0..8}
)
)
)
in
#"Removed length less than 9"
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous Add a new column in Power Query and use Text.Length([Column]). Then you can filter based on that column and then remove the column.
Text.Length - PowerQuery M | Microsoft Docs
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
84 | |
76 | |
73 | |
42 | |
36 |
User | Count |
---|---|
109 | |
56 | |
52 | |
48 | |
43 |