Thank you for sharing, this doesn't exactly solve my issue. I don't want the user to have to specify the conditions of when the reference line will appear, but I want it to calculate automatically depending on the dimension of the county that has been chosen. Any ideas?
Never mind I found a solution! I used a window_avg calculated field and the advanced settings of a table calculation to partition it correctly.