Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hello community,
In my data there is one row where amount is zero. I want to remove this row in Power Query Editor because this is not required.
I know it is just one row so removing it will not have much effect on size of data model.
But I want this because when viewing column profile, Min value is shows zero which is incorrect.
It is true that if I want to know the minimun amount, I can sort the column with ascending order and see. But I was hoping if it can be corrected so that column profile shows the real Min value.
Thanks
Solved! Go to Solution.
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:
In the filter dialog box:
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:
In the filter dialog box:
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.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 11 | |
| 10 | |
| 8 | |
| 7 | |
| 6 |