Use the DATEADD() function.
If you have a field that contains a date value with a specific hour, then this will get you yesterday at the same hour:
And to look one week back at the same hour:
DATEADD('week', -1, [that field])
Thanks for the answer.
I tried to use the formula but when I apply to the filter, Tableau ask for a type of date (relative date, for example) and then all the information desapear and the view get blank.
Do you know if I have to do something?
Your filter doesn't have to be a quick filter. It can be a calc.
If [transaction date] = [date calc week ago] then 1 else 0 END
Put that on your filter shelf and select for value = 1. You'll get the data from a week ago. (And actually that's a simplistic version of what the calc will look like. As it stands it will only get the rows for that exact value of the date calc, but you will want all day up to that time, or some other range, so the calc will have to account for that.)
I can only speak in general terms here because I don't have a sample workbook that shows what you're really doing.