Forum Discussion
M Power Query: Removing entire rows based on condition
- 8 years ago
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"
)- Zubair_Muhammad8 years agoCommunity Champion
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
- RafaelKnuth8 years agoAdvocate I
That works nicely in Excel Power Query. Thank you!
- Anonymous5 years agoNot applicable
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 ?
- RafaelKnuth8 years agoAdvocate I
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).