The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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?
Thanks a lot,
Robin.
Solved! Go to Solution.
hello, @RobinHaerkens
Table.FromRows(
List.Select(
Table.ToRows(your_table), (x) => not List.Contains(x, null)
)
)
hello, @RobinHaerkens
Table.FromRows(
List.Select(
Table.ToRows(your_table), (x) => not List.Contains(x, null)
)
)
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
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
34 | |
20 | |
20 | |
19 | |
13 |