Forum Discussion
Duh
3 years agoFrequent Visitor
Adding multiple columns in a nested table referring to previous row value
Can someone save my day!! I followed the below video to add a index to a nested table and add a column with the previous row value in the nested table, but the video only talks about adding row valu...
Duh
3 years agoFrequent Visitor
- AlienSx Sorry I could not understand the solution. I have a long way to go to understand M. What I did was create 2 nested columns. Expanded one with the index 0 and the other with index 1. But I really want to understand the solution you provided. Do I add the code in a custom function?
AlienSx
Super User
3 years agoDuh I added 2 columns into your nested table with values from previous row. Try to replace your code with mine (together with the name of step) and see if it works. I am referring to the table generated by PreviousStep (you are referring to this step too) so you don't need to change anything in my code.