Hi guys,
Making an expense app and try to have three buttons that, when pressed, will filter between pending, approved, and both pending and approved (see photo below).

my code is the following:
ClearCollect(
FilteredItems,
Filter(
LineItems,
Approval = "Pending" && Text(Title) = ApprovalGallerytext.Text Or Approval = "Approved" && Text(Title) = ApprovalGallerytext.Text
)
);
GallerySubmitted.AllItems = FilteredItems
It's sadly not working. the chocies in the sharepoint list (which it's connected to) are "rejected", "approved", and "Pending". Ignore rejected as i dont want a filter for that.
Where am I going wrong? any help would be greatly appreciated. Thanks!