Forum Discussion
Conditional Row Filtering
- 5 years ago
Hi , a68tbird
For you requirement, you can try follow steps:
1.create a custom column 'count'
=let Number=[Number] in Table.RowCount(Table.SelectRows(#"Changed Type",each Number = [Number]))2. select custom column 'count' and apply filter conditions to this column
3.After removing unnecessary columns,you will get the result you want.You can check my sample file for more details.
Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi a68tbird,
I think you are trying to filter the rows in power query, if that is the case you will need to create an index per order group in descending order and then filter out all indexes not equal to 1. please see this post from Reza Rad, https://radacad.com/create-row-number-for-each-group-in-power-bi-using-power-query.
One thing you will want to ensure is that you sort the data by order and then status to ensure that index number 1 gets assigned to the completed row.
Attached please find a simple pbix with a working power query pipeline based on your data