Get the previous date range according to the current date range


i’m having issues with getting the previous range according to current range.

for example, if my current range is last 6hrs, i want to get also the value of the last 6hrs of the current range using a query variable.

is there a variable for this?