Forum Discussion
Power Query compute a value based on previous row value
- 3 years ago
Hi Hart1969 ,
You can add calculated columns to get results
Final output:
Best Regards,
Gallen Luo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
HI Hart1969
Is each release one row or can be one release in multiple rows?
Have you thought about the following (should work if one release is one row)?
1) Make sure that your list sorted ascending by release ID
2) create an index column (standard Power QUery function) -> now each row should have a unique numeric index
3) now create a custom column like previousIndex = [Index] -1
4) now create a self join based on [previous index] and [index]
5) now you should have the previous list row in each row and you can expand the information you need for further transformation.
Best regards
Michael
-----------------------------------------------------
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your thumbs up!
@ me in replies or I'll lose your thread.
-----------------------------------------------------