Can you elaborate on why you say, "This is not correct solution?" How are you using the function "Today()-1?" Can you post a sample packaged workbook (.twbx) showing how you are doing it and why it is not correct?
agree with Bill here. We need to see what is being attempted - ideally within a packaged workbook - to be able to help. If the data is sensitive, you could might want to review Anonymize your Tableau Package Data for Sharing. In addition, there are several date related FAQ sections in the FAQ Hub that might help.