The Pop & Swap method may be able to help you:
However, I'm pretty sure you can achieve a similar effect using a parameter. Please see the attached TWBX.
I'm using a lowly parameter to change what a field reflects, and then filtering by that field. In my silly example, the user can sort by Day, or by Animal.
Each time the sort option is changed (meaning the user decides to search by Animal instead of Day), the existing filter is cleared.
I hope this gives you food for thought!
Filter Popper.twbx 14.8 KB
Balamurali -- How are you selecting one filter over the other?
Michael mentioned the popping-and-swapping example we made. The second half of the video is the "popping" portion, and if you want to expose/remove any object (legend, filter, sheet, etc) it's the popping technique that will serve your purposes.
But let me also point out something else.
You said you did "relevant values", and there are no values but the filter still displays. That means the title shows. Remove the title. When there are no values, then you will have no filter at all. Of course, it's helpful to the user to have a title so he knows what the filter is for. But sometimes removing the title is good enough to do what you are looking to do.
Otherwise, if Michael's suggestion (filtering using a calc that swaps the values based on parameter selection) doesn't do what you need, I can help you with popping things in and out. Attached is the workbook used in the linked video for you to play with. It's an 8.2 workbook, but it will upgrade to 10.0.
Popping and Swapping.twbx 975.9 KB
Excellent tip about removing filter titles!