I have the following code which creates a collection from a Sharepoint list called TripDetails - it filters on the date being Today and 5 days into the future - this working fine:
ClearCollect(
colTripData,
With(
{
StartDate: Today(),
EndDate: Today() + 5
},
Filter(
TripDetails,
tripdate >= StartDate,
tripdate < EndDate
)
)
);
I need to get the region field into that collection but it is in a different Sharepoint list called Trips so I need to do an AddColumns with a LookUp on tripid which is in both lists and then return the region field - I think the code is similar to this :
AddColumns(
Trips,
"Region",
LookUp(
colTripData,
tripid exactin Trips.tripid
).region
)
- can someone tell me how I wrap that code around my existing ClearCollect please - I have tried many combinations but none have worked for me yet...thanks