Forum Discussion
kirvis
6 years agoHelper I
How to filter nested table values in a column with text values
Hello all,
I have a column that contains both text values, as well as nested table values for some of the rows (see screenshot below).
Is there a way to either:
- Expand the value of the nested tables OR
- Filter out the rows with the nested tables?
Thanks,
Kirvis
Hi kirvis
You can
1. Sure you can transform all your text values to a table and expand all later, as per the attached file.
2. Please see the below example where the Table type is filtered out in the Filtered Rows Step or see the attached.
let Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WSlSK1YlWKgaTyWAyBUymKsXGAgA=", 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}}), #"Filtered Rows" = Table.SelectRows(#"Changed Type", each not Value.Is( Value.Type( [Column1] ), type table ) ), Custom = #"Filtered Rows"{0}[Custom] in CustomBest Regards,
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.
LinkedIn
2 Replies
- MariuszCommunity Champion
Hi kirvis
You can
1. Sure you can transform all your text values to a table and expand all later, as per the attached file.
2. Please see the below example where the Table type is filtered out in the Filtered Rows Step or see the attached.
let Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WSlSK1YlWKgaTyWAyBUymKsXGAgA=", 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}}), #"Filtered Rows" = Table.SelectRows(#"Changed Type", each not Value.Is( Value.Type( [Column1] ), type table ) ), Custom = #"Filtered Rows"{0}[Custom] in CustomBest Regards,
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.
LinkedIn- kirvisHelper I
Excellent! Just what I needed indeed.
Thanks Mariusz!