Running totals and rankings

The average of the ranking neighbors

For each customer, what is the average revenue of its ranking trio, made up of the customer itself, the one ranked just above and the one ranked just below?

This DAX case is part of izyDAX Pro

The full formula, its step-by-step breakdown and its 4 traps are waiting for you with izyDAX Pro, in a single payment. Three cases stay free, including the one on the home page.