I believe the best technique so far is creating a list and then creating another column using List.Sum. This does not require any complicated codes. Just point and click and will solve the issue.
More details:
https://www.sumproduct.com/blog/article/power-query-one-route-to-a-running-total