Max then sum metric

Hi,
I have several time series where I want to take the maximum value and then sum multiple terms to show a summary of the data. Is there some way to do this that I can’t figure out, I have searched the forums and the bug tracker?