Programmatically get query result for a past period (without changing the current one)

Hi, I’m using influxDB, and I would like to get the query result from 1 week prior to the timerange currently selected, to do data comparison. Is that possible?
Thanks.