Hello,
I've tried to work on this with no luck so far. I am trying to first add columns by doing a lookup to another source. Then adding other columns after doing calculations. There are 4 records in colPANELS and only some values are being added to some of the records (see attached picture). I don't understand why.
(ClearCollect(colPANELS,
AddColumns(Distinct(colINV,Panel),
"LoadPhA","",
"LoadPhB","",
"LoadPhC","",
"ReadingPhA",LookUp('EQ Panels',Title=Result).IA,
"ReadingPhB",LookUp('EQ Panels',Title=Result).IB,
"ReadingPhC",LookUp('EQ Panels',Title=Result).IC
)));
Concurrent(
ClearCollect(colPLA,Filter(colINVP,(Phase="A"||Phase="A/B"||Phase="A/B/C"||Phase="B/C/A"||Phase="C/A"||Phase="C/A/B"))),
ClearCollect(colPLB,Filter(colINVP,(Phase="A/B"||Phase="A/B/C"||Phase="B"||Phase="B/C"||Phase="B/C/A"||Phase="C/A/B"))),
ClearCollect(colPLC,Filter(colINVP,(Phase="A/B/C"||Phase="B/C"||Phase="B/C/A"||Phase="C"||Phase="C/A"||Phase="C/A/B"))));
UpdateIf(colPANELS,true,{
LoadPhA:Sum(Filter(colPLA,Panel=Result),A),
LoadPhB:Sum(Filter(colPLB,Panel=Result),A),
LoadPhC:Sum(Filter(colPLC,Panel=Result),A)
});
