Hi,
I have two buttons above the gallery. One sets the SortDatum value and the other sets SortFehlerDatum. Why in this case does sorting work for the first value Datum?
How could I make it sort by both values?
SortByColumns(
Filter(
DataFB,
And(
Or(
IsBlank(dpStartDate.SelectedDate),
Datum >= dpStartDate.SelectedDate
),
Or(
IsBlank(dpEndDate.SelectedDate),
Datum <= dpEndDate.SelectedDate
),
Bauteile.Value = varBauteile
)
),
"Datum",
If(
SortDatum,
SortOrder.Descending,
SortOrder.Ascending
),
"FehlerBild",
If(
SortFehlerBild,
SortOrder.Descending,
SortOrder.Ascending
)
)