Forum Discussion
srivatsa224
Feb 24, 2024Copper Contributor
Provide me with all main products (which are not present in the sub products) with their lowest
I hope you are doing well, please find the problem statement below along with the sample data and output. I have data with a product, sub-product, level and multiplying factor. Each product has ...
rachel
Feb 28, 2024Iron Contributor
Hi,
Instead of writing two recursive lambdas and use map to get results in one go, I think you can just write a recursive lambda with row Index as parameter, and put SEQUENCE inside the lambda.
Writing lambda with row Index as parameter is very similar to the classic recursive factorial function.
I checked, I think it works pretty well:
brunomerola
Feb 28, 2024Brass Contributor
Thank you, rachel.,
This is a better approach, and I've downloaded your worksheet. However, I'm unable to refresh the formula in cell B14. I've tried pressing ENTER and CTRL + SHIFT + ENTER within the range B14:D22. How did you apply the formula?
- rachelFeb 28, 2024Iron Contributor