Hi Everyone
I have a gallery in my PowerApps (Dataverse Table as my DataSource)
it is showing an error function where the switch part of the formula might not work on larger sets
and delegation warning for this and sign &&
SortByColumns(
Filter(
'Databases',
(varUserEmail in Risk_requestor || varUserEmail in 'Risk Manager' || varUserEmail in Primary_risk_owner || User().Email = "Snap.com" || User().Email = "noz.com") && Switch(
varSatgeIndex,
1,
Stage_of_risk = "Identification",
2,
Stage_of_risk = "Assessment",
3,
Stage_of_risk = "Response",
4,
Stage_of_risk = "Monitor",
5,
Stage_of_risk = "Closed",
true
) && (!Checkbox1.Value || Primary_risk_owner = varUserEmail) && (!Checkbox1_1.Value || varUserEmail in Risk_requestor) && (Len(TextInput2.Text) = 0 || StartsWith(
'Risk_Title/Summary',
TextInput2.Text
) || StartsWith(
Risk_requestor,
TextInput2.Text
))
),
"createdon",
SortOrder.Descending
)
Could anyone please help me to fix this issue