Creating Filters in Canvas Apps

In Canvas Apps, the Filter function helps to pinpoint specific records within your data. You can set rules to display relevant information, it's like having a search tool that extracts precisely what you seek from your dataset.
Syntax:
Filter (data source, formula)
Example: Suppose you have a table named "Tasks" with various columns such as "TaskName", "AssignedTo", "Priority", and "Status". You want to filter this list to only show tasks that are assigned to either "John" or "Emily" and have a priority of "High" or "Medium" and are still in progress (Status is "In Progress"). Here's how you could use the Filter function with that syntax:
Filter(Tasks, (AssignedTo = "John" || AssignedTo = "Emily") && (Priority = "High" || Priority = "Medium")&& Status = "In Progress")
In this example, the Filter function will go through each task in the "Tasks" list and pick out only those that meet all the specified criteria: assigned to either "John" or "Emily", have a priority of "High" or "Medium", and have a status of "In Progress". So, you'll end up with a filtered list showing only the tasks that match all these conditions.
Let's get started!!!
Before we proceed let me give you a glance at what I am going to do now, I have created a table ‘Student Marks’ which consists of columns like student name, marks, Joining date, Class, etc. Now I am going to create a filter that filters student records based on their joining date and class.
Firstly, log in to Power Apps, and create a canvas app, you can either select Tablet or Phone format. Here, I am selecting Phone.

From the insert drop-down select the vertical gallery.

Now, we need to select a data source on which we are going to perform the filter operation which in my case is ‘










