Hi Everyone
Iam trying to filter my gallery based on the User email = Matches one of the share point Column
Below I have given the code which I worked on
But the Gallery is not getting filtered properly.
( Risk_Requestor is a multiline text column )
I tried to store email as a variable and tried to apply the same on the formula, but still it's not working.
and I even tried to remove the filter for the user email and checked the gallery function it working perfectly fine.
Onstart :Set(varUserEmail, User().Email)
Items property of Gallery which is not working )*Not showing anyerror
SortByColumns(
Filter(
Risk_Database_1,
LookUp(
Risk_Database_1,
varUserEmail in Risk_requestor,
(
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 // For varSatgeIndex = 0, show all risks
) &&
If(
Checkbox1_1.Value,
Archetype_head.Email = User().Email,
true
) &&
(
IsBlank(TextInput2.Text) ||
StartsWith('Risk_Title/Summary', TextInput2.Text) ||
StartsWith(Risk_requestor, TextInput2.Text)
)
)
)
),
"Created", SortOrder.Descending
)
Could anyone please help me to fix this issue?