I have a subreport that passes a variable to the main report. I use this shared variable in my main report in a separate formula. I would like to sort based on the result of that formula, but since it uses a variable I cannot choose it in the sort expert. Does anyone have a work around for this?