Getting a query result limited to a specific time like April 1st to May 1st

Is there a way to set the range to A specific interval? Like from April 1st to May 1st. Basically a Fixed value graph/table/singlestat.

Use case: compare SLO for specific time ranges.