I want to take a prompt answered date, P1, subtract 90 days from P1 to get P2 and end up with a date range of P2 to P1. I have played with the following syntax, but I cannot figure out a way to replace P2 with (P1-90 days) since "90" is not of type "date".
ApplyComparison ("#0 BETWEEN (dateadd(day, -datediff(day, #1, #2), #1)) and #1", Date@ID, ?[P1], ?[P2])
ApplyComparison ("#0 BETWEEN (dateadd(day, -datediff(day, #1, #2), #1)) and #1", Date@ID, ?[P1], ?[P2])