All2Cheesy
Board Regular
- Joined
- Mar 4, 2015
- Messages
- 127
Hi all,
I'm looking to create a count for the number of successive increases or decreases in my data set.
I'm not sure if this can be done, and I'm struggling to think of a way to get started on this. Would anyone have any suggestions? Example is below.
<tbody>
</tbody>
Company 1 should return +3 (Because it ended with 3 successive increases)
Company 2 should return -3 (Because it ended with 3 successive decreases)
Company 3 should return +1 (Because it ended with 1 increase)
I'm looking to create a count for the number of successive increases or decreases in my data set.
I'm not sure if this can be done, and I'm struggling to think of a way to get started on this. Would anyone have any suggestions? Example is below.
| April | May | June |
Company 1 | $150 | $200 | $300 |
Company 2 | $400 | $200 | $30 |
Company 3 | $400 | $300 | $600 |
<tbody>
</tbody>
Company 1 should return +3 (Because it ended with 3 successive increases)
Company 2 should return -3 (Because it ended with 3 successive decreases)
Company 3 should return +1 (Because it ended with 1 increase)