I have written a filter function which will return data based on the argument you are passing. I want the same