I have a reference table in excel online that i am connecting to that has aprox 12k rows. I used the With() statement to beable to get the distinct values. I created a concatenated field called agent_code_name_city which is Agent_Code, 'Agent Name', and busns_addr_city. I used the following code originally:
With(
{
wStart:
Filter(
tblAgentMasterList,
StartsWith(
agent_code_name_city,
Self.SearchText
)
)
},
Sort(
Distinct(
wStart,
agent_code_name_city
),
Value
)
)
This worked though it only allowed me to search by the Agent Code since the concatenated field starts with the agent code. I was hoping to be able to search by agent code, name or city.
I attempted to fix it by this:
With(
{
wStart:
Filter(
tblAgentMasterList,
StartsWith(
Agent_Code, Self.SearchText
) ||
StartsWith(
'Agent Name', Self.SearchText
) ||
StartsWith(
busns_addr_city, Self.SearchText
) ||
StartsWith(
agent_code_name_city, Self.SearchText
)
)
},
Sort(
Distinct(
wStart,
agent_code_name_city
),
Value
)
)
Same issue as before, any help or recommendations would be helpful. Thanks. @WarrenBelz i used your blog for most of this.