I want to compare the values within a column and aggregate (count) at each change in value. so for example column "A" has a series of numbers like (1,1,1,2,1,5,2,2,5) the aggregation should be the counts 3,1,1,1,2,1. 3 of 1, followed by 1 of value 2, followed by 1 value 1...
somebody suggested duplicating the target column and shifting in down by one row and then comparing the values between the original column and the new column but I couldn't perform what he suggested.
can anyone help?