Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I want to remove entire rows IF both horizontally adjacent cells in the last two columns are empty (hence rows 4, 6, 7, 9 should be removed). How can I do this? Not sure by the way whether I should do this in M or DAX. Any help appreciated. Thanks!
Solved! Go to Solution.
HI @RafaelKnuth
With Power Query...
You can add a Custom Column....>>>>then filter out the Null values in that column and then delete this Custom Column
Hi @RafaelKnuth
Try this Calculated Table
From the Modelling Tab>>>NEW TABLE
(Replace TableName and Column names with actual names of your Table and Columns)
New Table = FILTER ( ADDCOLUMNS ( TableName, "Remove Rows?", IF ( ISBLANK ( TableName[Last Column] ) && ISBLANK ( TableName[2ndLast Column] ), "Yes", "No" ) ), [Remove Rows?] = "No" )
HI @RafaelKnuth
With Power Query...
You can add a Custom Column....>>>>then filter out the Null values in that column and then delete this Custom Column
Hi Zubar
Do you mean that if I load 100,000 row table to power BI
if I want to delete from Row 5 till 100,000 , I can just write bSe on those script you share with me ?
That works nicely in Excel Power Query. Thank you!
Thanks, awesome! Any idea how to do that in the Excel source file? (it's not possible to create new tables in Excel Power Query ... in contrast to Power BI).
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
70 | |
68 | |
43 | |
34 | |
26 |
User | Count |
---|---|
86 | |
50 | |
45 | |
38 | |
38 |