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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

How to get rid of rows with empty values in column containing lists

Hi!,

 

I have dataset like this:

 

frugo_0-1640636948946.png

 

and I would like to remove rows like 234. How can I do it? There is no simple filtering option for that type of a column.

I cannot process this data any further because of the rows like this. After expansion of this column to new rows I get error rows which are irremovable by "Remove errors" option (another thing I cannot understand).

 

Regards,

Michal

1 ACCEPTED SOLUTION
wdx223_Daniel
Super User
Super User

two methods to resolve this problem.

1, to transform this column before expanding it.

NewStep=Table.TransformColumns(PreviousStepName,{column name which you want to transform,each if _ is list then _ else {_}})

2, or to remove these blank rows before expanding

NewStep=Table.SelectRows(PreviousStepName,each [#"column name"] is list)

View solution in original post

4 REPLIES 4
wdx223_Daniel
Super User
Super User

two methods to resolve this problem.

1, to transform this column before expanding it.

NewStep=Table.TransformColumns(PreviousStepName,{column name which you want to transform,each if _ is list then _ else {_}})

2, or to remove these blank rows before expanding

NewStep=Table.SelectRows(PreviousStepName,each [#"column name"] is list)

Anonymous
Not applicable

Thanks!

lbendlin
Super User
Super User

This is standard Power Query functionality. Click on the dropdown to the right of the column name and click "Remove Empty"

lbendlin_0-1640641969641.png

Or use the manual code approach.

 

 

let
    Source = #table({"A","B"},{{{"1","2"},"2"},{"","4"}}),
    #"Filtered Rows" = Table.SelectRows(Source, each [A] <> null and [A] <> "")
in
    #"Filtered Rows"

 

How to use this code: Create a new Blank Query. Click on "Advanced Editor". Replace the code in the window with the code provided here. Click "Done".
Anonymous
Not applicable

Notice that there is no dropdown in that type of a column.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors