Forum Discussion
Remove one row in Power Query Editor based on condition
- 2 years ago
Create following DAX measure in your report.
MinimumAmountGreaterThanZero = MINX(FILTER('YourTableName', 'YourTableName'[Amount] > 0), 'YourTableName'[Amount])OR
You can also achive the removal of zero records in the power query by following below steps:
In Power BI Desktop, go to the "Home" tab.
Click on "Edit Queries" to open the Power Query Editor.
In the Power Query Editor:
- Locate the table that contains the 'Amount' column in the "Queries" pane on the left.
- Click on the filter icon (funnel icon) next to the 'Amount' column header.
In the filter dialog box:
- Select "is not equal to" or "does not equal" depending on the specific interface of your Power Query version.
- Enter "0" as the value.
- Click the OK or Apply button to filter out the records with an amount equal to 0.
Close the Power Query Editor and apply the changes.
Create following DAX measure in your report.
MinimumAmountGreaterThanZero = MINX(FILTER('YourTableName', 'YourTableName'[Amount] > 0), 'YourTableName'[Amount])OR
You can also achive the removal of zero records in the power query by following below steps:
In Power BI Desktop, go to the "Home" tab.
Click on "Edit Queries" to open the Power Query Editor.
In the Power Query Editor:
- Locate the table that contains the 'Amount' column in the "Queries" pane on the left.
- Click on the filter icon (funnel icon) next to the 'Amount' column header.
In the filter dialog box:
- Select "is not equal to" or "does not equal" depending on the specific interface of your Power Query version.
- Enter "0" as the value.
- Click the OK or Apply button to filter out the records with an amount equal to 0.
Close the Power Query Editor and apply the changes.
Thanks elvin for reply.
Actally, I just had to unselect that particular row in Power Query.
This will ensure column profile shows correct statistics and also that particular row will not load into data model.