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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
RobinHaerkens
Frequent Visitor

Removing Data

Hi all,

Quick question regarding removing data - from the below data, I would like to delete all rows that contain "null" in one of the columns. Could anyone help on this?

RobinHaerkens_0-1697709515297.png


Thanks a lot,

Robin.

1 ACCEPTED SOLUTION
AlienSx
Super User
Super User

hello, @RobinHaerkens 

Table.FromRows(
  List.Select(
    Table.ToRows(your_table), (x) => not List.Contains(x, null)
  )
)

View solution in original post

3 REPLIES 3
AlienSx
Super User
Super User

hello, @RobinHaerkens 

Table.FromRows(
  List.Select(
    Table.ToRows(your_table), (x) => not List.Contains(x, null)
  )
)

Hi @AlienSx 

I'm getting the below error when implementing your code - can you help?

RobinHaerkens_0-1697788580324.png

 



Hi, @RobinHaerkens please show your code. I've just tested it and it works. 

let
    source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WUtIBIdeK5IzEvPRUhaLEklQriJhSrA5MmrCAU2p6Zl5eZl66QlJiTmJecipQLCC1KDM/RSExuSSzLLOkEmRNXgqyEpD2vHyFvNKcnGKgLPHM2FgA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t, Column2 = _t, Column3 = _t, Column4 = _t, Column5 = _t]),
    your_table_with_nulls = Table.ReplaceValue(source,"",null,Replacer.ReplaceValue,{"Column1", "Column2", "Column3", "Column4", "Column5"}),
    tbl = 
        Table.FromRows(
            List.Select(
                Table.ToRows(your_table_with_nulls), (x) => not List.Contains(x, null)
            )
        )
in
    tbl

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.