Hi Garima Vohra,
You an use the Date Range filter. have you tried it yet?
Could you please provide me with your .twbx?
I can show you how to do this.
Lénaïc RIÉDINGER, Global Community Engineer Tableau
If you see a Helpful or Correct response, please mark it thanks to the buttons below the targeted post!
Thank you for responding. I tried what you suggested but the thing is my data changes everyday and a new date is included. So, say I have data for each day starting Sept 1 2017, until October 6,2017 which is today. I want to include today's data along with 20 days ago total 21 days of data not more than that. When I will again have the data tomorrow my filter should eliminate the last date's data which would be in September and include the Oct 7,2017 data. Please let me know.
You can drop into filter a calculation such as
[Date field] >= TODAY() - 21
and keep only true
Thank you so much Justin. It worked