hi,
I have a list that I am trying to calculate the difference between the values of current row and next row, but I am not sure how to get the next row value in a list.
I tried using:
For each CurrentItem in List
If %List + 1% - CurrentItem = 1 Then
Add item CurrentItem to AnotherList
End
End
PowerAutomate Desktop doesnt prompt me an error on that but it also doesnt do anything to populate the AnotherList.
I thought about creating a 2nd list (lets call that List2) then remove List[0], then loop the list like List[%LoopIndex + 1%] - List[%LoopIndex%], but it still wouldnt populate the AnotherList.....
and since PAD cannot create a new column in Excel, I cant just write those 2 list in 2 columns and do the math there either....
any thought on how can I do this?