This forum has been really helpful, so here's my next question / challange.
I have a screen where the user can select from a list of tasks. The tasks are a vertical Gallery attached to a data source.
I want the user to select a task and then the screen will navigate to a new screen detailing the task.
At the moment I have it so that this funciton works and navigates to the new screen with the title of the screen as the task name (by using a context variable)

How do I then list all the different details of the task? I can make a data source that will contain all the task data from the SQL Server, but how do I ensure that the data returned is based on the currently selected task? If I was thinking in "SQL" terms it would be
SELECT * FROM dbo.tasks WITH (NOLOCK) where TaskName = "task name"
But I don't know how to set those conditions in PowerApps. Can I run a query that I pass a ContextVariable to? Or do I have a DataSource that gets all tasks then somehow filter then based on the ContextVariable?
Thanks in advance.