I'm not sure what you mean by "yearly difference for each city". Is that the range of values (max-min) for a given city in a given year? Or is it the difference between the average values for a city between two different years? Or something else?

If you could give a small example of what the data look like and what your desired result would be, it will be easier for someone to help you come up with a JSL formula.

Best,

Michael

Michael Crotty

Sr Statistical Writer

JMP Development