Forum Discussion
Anonymous
3 years agoNot applicable
Count repeating values
Hi, I have for example the following data: Product Values 1 20 1 20 2 15 3 10 1 5 I want to count how many times the value 20 returns in a row. So, for this case it will ...
- 3 years ago
Hi Anonymous ,
There should be a column that indicates which row comes before which. To do that, add an Index column in Power Query then create a calculation to identify whether a value in the current row is the same as the next row and vice versa. If what you are looking for is as below, the solution is in the attached pbix.
Anonymous
3 years agoNot applicable
danextian Thanks a lot, this was what I needed!
Anonymous
3 years agoNot applicable
danextian I still have a question. In my data there is another index that should determine if it is a recurring value and that is a name. So when INDEX 1 and NAME 1 has the value 20 and then INDEX 2 and NAME 1 has the value 20 then it is repeating. How can I accomplish this?