Hello Experts,
I would like to filter my gallery with current user if they click on a check box
Currently I am using this code
SortByColumns(
Filter(
'DWP Exceptions Tracker',
Or(
StartsWith('Customer Name',InputSearchID.Text),
ID = Value(InputSearchID.Text),
StartsWith('Title of Exception',InputSearchID.Text)
)
),
"Created",
Descending
)
I tried using IF function but it doesn't seems to work, please guide me
Here is what i was trying
If(Checkbox2.Value = false,
SortByColumns(
Filter(
'DWP Exceptions Tracker',
Or(
StartsWith('Customer Name',InputSearchID_1.Text),
ID = Value(InputSearchID_1.Text),
StartsWith('Title of Exception',InputSearchID_1.Text)
)
),
"Created",
Descending
),SortByColumns(
Filter(
'DWP Exceptions Tracker',
Or(
StartsWith('Customer Name',InputSearchID_1.Text),
ID = Value(InputSearchID_1.Text),
StartsWith('Title of Exception',InputSearchID_1.Text),'Created By'.Email = User().Email
)
),
"Created",
Descending
))