Reuse prometheus query

i need to find the max_over_time, quantile_over_time of same metric in a dashboard, The dashboard times out due to large number of queries, is there a way to use the same data in multiple places? like query “Value A” and use max_over_time(“Value A”)??