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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
third_hicana
Helper III
Helper III

Remove rows based on blank cells of a column

Hi. Asking for your help regarding transforming my table.

 

I wish to remove blank rows in my table based on blank cells of column 'Talk Title'

third_hicana_1-1715746469068.png

 

I tried to modify the code below in power query but an error occured.

 

#"Removed Blank Rows" = Table.SelectRows(#"Renamed Columns3", each not List.IsEmpty(List.RemoveMatchingItems(Record.FieldValues(_), {"", null}),each try Text.Clean(Text.Trim(_)) otherwise _ ),{""})

in

#"Removed Blank Rows"

 

third_hicana_0-1715746258892.png

 

Hoping for your help. Thank you. 

 

-Third

1 ACCEPTED SOLUTION
BA_Pete
Super User
Super User

Hi @third_hicana ,

 

Are you just trying to remove any rows where [Talk Title] is blank?

If so, then the following step should work:

Table.SelectRows(
    PreviousStepName,
    each [Talk Title] <> ""
)

 

You may need to adjust the "" bit, depending on whether your your non-null values in that column are "", " ", "    " etc.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




View solution in original post

2 REPLIES 2
BA_Pete
Super User
Super User

Hi @third_hicana ,

 

Are you just trying to remove any rows where [Talk Title] is blank?

If so, then the following step should work:

Table.SelectRows(
    PreviousStepName,
    each [Talk Title] <> ""
)

 

You may need to adjust the "" bit, depending on whether your your non-null values in that column are "", " ", "    " etc.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




@BA_Pete

 

Thank you very much

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors