I have a collection that is being created that has a pretty convoluted search for an AddColumns statement (due to the use of a Sharepoint Person field:
ClearCollect(
colWednesdayNight,
AddColumns(
'AES Global Portfolio',
"Team Name",
First(Filter(Search(AddColumns('Hot Add Controls',"DisplayName",Resource.DisplayName),
'Executive Sponsor'.DisplayName,"DisplayName"),Title="Executive Sponsor")).Team
)
)
The column addition is working properly, the only issue is that if the Executive Sponsor column has nobody listed in it, the search returns "Operations", which is the first team in the Hot Add Controls list that has the Title "Executive Sponsor". If the Executive Sponsor field is empty, I'd like it to park a "N/A" in the Team Name field.
I've tried all kinds of combinations of If(!IsEmpty...) and If(!IsBlank...) but can't seem to figure out something that works.
Would love some help!