I am currently building a PowerApp Form that is utilizing 10 different SharePoint Lists as the Delegation limit is 2000 rows.
I am trying to create a Set that will then change other information in the form based on the value entered.
What I have as of right now is below but doesnt seem to be working:
Set(CustomerRows,If(Left(AccountNo.Text,2) in "11011121314",Filter('SGWS KY Accounts 1-14',AccountNo.Text=Text('Customer No')),
If(Left((AccountNo.Text,2) in "1516171819",Filter('SGWS KY Acounts 15-19',AccountNo.Text=Text('Customer No')),
If(Left(AccountNo.Text,1) = 2,Filter('SGWS KY Accounts 2',AccountNo.Text=Text('Customer No')),
If(Left(AccountNo.Text,1) = 3,Filter('SGWS KY Accounts 3',AccountNo.Text=Text('Customer No')),
If(Left(AccountNo.Text,1) = 4,Filter('SGWS KY Accounts 4',AccountNo.Text=Text('Customer No')),
If(Left(AccountNo.Text,1) = 5,Filter('SGWS KY Accounts 5',AccountNo.Text=Text('Customer No')),
If(Left(AccountNo.Text,1) = 6,Filter('SGWS KY Accounts 6',AccountNo.Text=Text('Customer No')),
If(Left(AccountNo.Text,1) = 7,Filter('SGWS KY Accounts 7',AccountNo.Text=Text('Customer No')),
If(Left(AccountNo.Text,1) = 8,Filter('SGWS KY Accounts 8',AccountNo.Text=Text('Customer No')),
Filter('SGWS KY Accounts 9',AccountNo.Text=Text('Customer No')))))))))))),'Customer No')AccountNo is the test field where the information will be entered.
SGWS KY Accounts 1-14 and SGWS KY Acounts 15-19 are SharePoint lists where Account numbers start with one and I split them to be below the 2000 row limit for Filter. Becasue of this the Left has to be the first 2 numbers, all other are first number.
The Formula I am using to pull related information based on Set also below
Text(First(CustomerRows).'Customer Name')