I had tried that but got exceptions when using the filter on columns with:
System.InvalidOperationException: Failed to compare two elements in the array, --> System.ArgumentException: Object must be of type DateTime.
(or other data type depending on the data type). Hence the more complex solution.