Hello, I´m trying really hard to connect this data, but it´s taking a long time and a lot of stress and I just came to the point that I give up.
The issue is pretty "simple".
I have a screen, with a vertical gallery, called "Gallery2" which is connected to a Sharepoint list, called "General".
Here the Sharepoint list:

Here, my screen on Power App:

As we can see we have a blue button on the top, called "21 bis dach" which is a category.
I want to filter the gallery based on the "Category 2" column of Sharepoint.
For example: I press the button "21 bis dach" and the gallery shows me only the titles related on that category.
But there is a problem: I can´t connect the gallery to the button because, apparently, category1 and category2 just don´t exist in the edit field section.
On "OnSelect" property of the button I wrote: "UpdateContext({Filterby21bisdach:!Filterby21bisdach})".
On "Items" property of the Gallery, I wrote: "SortByColumns(Filter(General), If(Filterby21bisdach=true, Category2.Text = "21 bis dach", Category2.Text<>""))" but it gives me error. The error messages are:
-Invalid number of arguments, received 1, expected 2 or more
-The function "SortByColumns" has some invalid arguments
-Invalid argument type (Boolean); Expecting a text value instead
Thank you in advance for your help.