Hi,
I tried to create a easy App (so I thought) but now I tried so mach ways and have no idea how it works.
I wanna create a App which have as a DataSource a Excelfile. In this are different tables (a.E.: "2019", "2018", "2017",...)
The strcuture of the tables are the same. Their are Names and 30 Dates (1., 2., 3., ..., 30.). In this are the holidays of the Employees stored.
| | 1. | 2. | 3. | 4. | ... |
| Name_1 | 31.03.19 | 01.04.19 | 02.04.19 | 03.04.19 | ... |
| Name_2 | 01.05.19 | 02.05.19 | 03.05.19 | 04.05.19 | |
| Name_3 | 05.02.19 | 06.02.19 | 07.02.19 | 08.02.19 | |
| Name_4 | 01.01.19 | 02.01.19 | 03.01.19 | 04.01.19 | |
The App looks like that and have to show which holidays in the year are taken with the date.

With the Dropdown the App loads the Datasource in the Gallery. I realized this with a If-Formula in the Gallery items:
SortByColumns(Search(If(var_JahrTxt="2018";UrlList_2018;UrlList_2019); TextSearchBox1.Text; "Spalte1"); "Spalte1"; If(SortDescending1; Descending; Ascending))
This works. But in the DetailForm1 the formula
If(var_JahrTxt="2018";UrlList_2018;UrlList_2019)
gives a error.
What can I do or is there a easier way to realize this app?