Hello,
I have the following string "A100,A101,A102". What I am trying to do is to split the comma separated string, lookup value on the list (sample below) based on the MatID and accumulate the values into one variable (60 in this example).
So I thought of the following, but that didnt work because editor said i cant use Set inside ForAll. Any ideas? Thanks!
ForAll(Split("A100,A101,A102", ","), Set(myAccumulator, myAccumulator + LookUp(myList, matID=Result, MatValue))
| MatID | MatValue |
| A100 | 10 |
| A101 | 20 |
| B100 | 30 |
| C100 | 50 |
| A102 | 30 |


Report
All responses (
Answers (