Get Row Minus the Next Row
We have the built-in Visit Number dimension on our website and want to create a histogram showing the most common numbers of visits. With the way this metric works, you are counted for each visit number up until your last visit: if you visited once, you would be one tally mark under Visit Number 1, if you visited three times you would be one tally mark under Visit Number 1, Visit Number 2, and Visit Number 3.
I want to create a metric that calculates just the highest visit numbers. This should be pretty easy to do by subtracting the total of Visit Number 2 from Visit Number 1, 3 from 2 and so on and so on down the line, basically Cell - Cell [+1] but I can't find a way to reference row indices in the metric maker. Ideas?