If {@StartDate} in {?From Date} to {?To Date} then
{@StartDate} >= ({?From Date} - 27) and
{@StartDate} <= {?To Date}
doesn't work, as @startDate is in the range, but NEVER -27 days
I am assuming that the is a filter and that you entered it Report/Selection Formulas/Record.
would have thought that DATE(table.field) IN ({?From Date} - 27) to {?To Date} would work.
when this sort of issue occurs, I will create formulas that display the parts and the whole, like ({?From Date} - 27), to see if it is giving the value that I think it should, and DATE(table.field) IN ({?From Date} - 27) to {?To Date}... Sometimes, what I think the values are, aren't and then I can adjust my logic to work.
HTH