Hi Members,
I have a requirement in Power Apps where I want to add the Column names to a Power Apps list box and filter the gallery based on the selected value of the List box.
Scenario:
I have a SharePoint list as 'Power Platform Training' as shown below:

On my Power Apps screen, I have added a List box control and displayed the column names from a SharePoint list

Now, I added a Gallery control -> Set its Items property to:
Filter('Power Platform Training',ListBox1.Selected.Value)

However, the gallery is filtering the column values randomly.

But, I need to filter the gallery; when the user selects a Column name as Course, the gallery should give the values only from a course like "Power Apps," "Power Automate"..., etc
Can anyone please suggest how I can resolve this? Thanks in advance!