Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
kirvis
Helper I
Helper 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:

 

  1. Expand the value of the nested tables OR
  2. Filter out the rows with the nested tables?

Thanks,

 

Kirvis

 

9a961445468810d9ee0a2db6576a16c9

1 ACCEPTED SOLUTION
Mariusz
Community Champion
Community 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
    Custom

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn




View solution in original post

2 REPLIES 2
Mariusz
Community Champion
Community 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
    Custom

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn




Excellent! Just what I needed indeed.

 

Thanks Mariusz!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.