I have built an app that has a gallery that shows the status of tasks assigned which is filtered by a tab selection in the following manner.
varTabSelected=1: all tasks
varTabSelected=2: tasks assigned to me
varTabSelected=3: tasks pending my review
varTabSelected=4: tasks created by me
I also have a built-in filter function for the user in "all tasks" to filter down to the tasks they need. Thanks to @Drrickryp who provided this awesome code when I was trying to combine the user filter and the tab filter.
With({_items:SortByColumns(Filter('SP LIST NAME',('Due date' >= cldStart.SelectedDate && 'Due date' <= cldEnd.SelectedDate || cldStart.SelectedDate = Blank() && cldEnd.SelectedDate = Blank()) && (Progress.Value = StatusRadio.Selected.Value || StatusRadio.Selected.Value = Blank()) && (Priority.Value = PriorityRadio.Selected.Value || PriorityRadio.Selected.Value = Blank())
),"DueDate",Descending)},
If(vartabselected=1,_items,vartabselected=2,Filter('SP LIST NAME',User().Email in 'Assigned To'.Email),Filter(_items,User().Email in 'Assigned To'.Email,Progress.Value="Pending")))
Is there a way to make the user filter which works with Tab 1 - All Tasks, have the same functionality regardless of which tab is selected? Currently, the user is only able to filter the gallery when they are on Tab 1 - All Tasks. it doesn't work when the user is in Tabs 2-4.
Thanks