It is possible to use a SQL query in the advanced filtering and query options like this (non-functional example given):
But is it also possible to use a method instead of a field? If I use something like (salesLine.RemainSalesPhysical == salesLine.pickedInTotalSalesUnit) I get an error:
Query extended range failure: salesLine.pickedInTotalSalesUnit is not a valid datasource.field pair. This is probably caused by the fact that pickedInTotalSalesUnit is a method and not a field.