hi,
I am pretty new PQ, and found it an indispensable tool for any Excel user. I am facing with a problem that we can easily resolve in Excel, but haven't found the way to achieve the result in PQ yet.
I want to perform recursive calculation for a column:
--> to achieve:
function in excel is B8= A8; B7= IF(A7<=A8,A7,B8), etc...
I found Chris's blog about recursion with list.generate(), but I couldn't understand fully to apply this case.
Could you help to show steps to achieve the result in PQ?
Thanks
I am pretty new PQ, and found it an indispensable tool for any Excel user. I am facing with a problem that we can easily resolve in Excel, but haven't found the way to achieve the result in PQ yet.
I want to perform recursive calculation for a column:
Input |
8 |
6 |
5 |
6 |
4 |
8 |
9 |
A | B | ||
1 | Input | Result | |
2 | 8 | 5 | |
3 | 6 | 5 | |
4 | 5 | 5 | |
5 | 6 | 4 | |
6 | 4 | 4 | |
7 | 8 | 8 | |
8 | 9 | 9 |
function in excel is B8= A8; B7= IF(A7<=A8,A7,B8), etc...
I found Chris's blog about recursion with list.generate(), but I couldn't understand fully to apply this case.
Could you help to show steps to achieve the result in PQ?
Thanks