ForAll(List2,
Collect(List3,
Table(
//Last Name
{Last_Name:LastName,
//First Name
First_Name:FirstName,
//Payroll
Payroll:Value(Payroll),
//Shift
Shift:Shift,
//Additions
//Skills
Shift_Concat: LookUp(Name_Skills,Payroll_Skill=Payroll&&ORG_ID=vargroup,Skill_Concat),
Shift_Skill:LookUp(Name_Skills,Payroll_Skill=Payroll && ORG_ID=vargroup,Skill),
Shift_Skill_Red: LookUp(Name_Skills,Payroll_Skill=Payroll&&ORG_ID=vargroup,Name_Skill_Red),
Shift_Skill_Green: LookUp(Name_Skills,Payroll_Skill=Payroll&&ORG_ID=vargroup,Name_Skill_Green),
Shift_Skill_Blue: LookUp(Name_Skills,Payroll_Skill=Payroll&&ORG_ID=vargroup,Name_Skill_Blue),
//Daypart
DayPart:If(Value(Left(Shift,2))>=21,"N",
If(Value(Left(Shift,2))>=14,"E",
If(Value(Left(Shift,2))>=6,"D",
If(Value(Left(Shift,2))<6,"N")))),
Shift_Date:DatePicker2.SelectedDate,
ORG_ID:vargroup,
Full_Name:FirstName&" "&LastName,
ID:Blank()
})));
Hey.
I have the above formula it collecting some lookups into a collection.
I found that by collecting 4 lookups (in green) into the collection it run a little bit slow
So, I created a concatenation (separated by a comma Skill,Name_Skill_Red,Name_Skill_Green,Name_Skill_Blue ) in the DataSource and I'm now able to look up these values one time using the lookup coloured red.
how can i split these results into their respective columns in the collection. I need to keep the collection column names in light blue as they exactly match the DataSource and are used later for a Patch only where i put the first argument as the DataSource and then the entire collection as the update.