Forum Discussion
kirvis
Helper I
6 years agoHow 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 n...
- 6 years ago
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
Mariusz
Community Champion
6 years agoHi 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
Custom
Best Regards,
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.
LinkedIn
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.
kirvis
Helper I
6 years agoExcellent! Just what I needed indeed.
Thanks Mariusz!