I have a gallery that is connected to a sharepoint list.
As of now, I have a filter formula that works, but when i try to add a sort function, I just get a lot of errors.
The filter formula alone:
Filter(
[@EfaNSO];
(StartsWith(
'Innsendt av'.DisplayName;
searchbox.Text
) || StartsWith(
'ID nummer';
searchbox.Text
) || StartsWith(
'Informasjon om saken';
searchbox.Text
) || StartsWith(
Sakstype.Value;
searchbox.Text
) || StartsWith(
Kategori.Value;
searchbox.Text
) || StartsWith(
Underkategori.Value;
searchbox.Text
) || StartsWith(
'Innmeldt dato';
searchbox.Text
)) && (Kategori.Value = Drop_kat_1.Selected.Value || Drop_kat_1.Selected.Value = Blank()) && (Status.Value = Drop_kat_5.Selected.Value || Drop_kat_5.Selected.Value = Blank()) && (Underkategori.Value = Drop_kat_2.Selected.Value || Drop_kat_2.Selected.Value = Blank()) && (Sakstype.Value = Drop_kat_4.Selected.Value || Drop_kat_4.Selected.Value = Blank()) && ('Innsendt av'.DisplayName = DataCardValue36_1.Selected.DisplayName || DataCardValue36_1.Selected.DisplayName = Blank())
)
When i try to add the sort formula, i set it up like this:
Sort(Filter(
[@EfaNSO];
(StartsWith(
'Innsendt av'.DisplayName;
searchbox.Text
) || StartsWith(
'ID nummer';
searchbox.Text
) || StartsWith(
'Informasjon om saken';
searchbox.Text
) || StartsWith(
Sakstype.Value;
searchbox.Text
) || StartsWith(
Kategori.Value;
searchbox.Text
) || StartsWith(
Underkategori.Value;
searchbox.Text
) || StartsWith(
'Innmeldt dato';
searchbox.Text
)) && (Kategori.Value = Drop_kat_1.Selected.Value || Drop_kat_1.Selected.Value = Blank()) && (Status.Value = Drop_kat_5.Selected.Value || Drop_kat_5.Selected.Value = Blank()) && (Underkategori.Value = Drop_kat_2.Selected.Value || Drop_kat_2.Selected.Value = Blank()) && (Sakstype.Value = Drop_kat_4.Selected.Value || Drop_kat_4.Selected.Value = Blank()) && ('Innsendt av'.DisplayName = DataCardValue36_1.Selected.DisplayName || DataCardValue36_1.Selected.DisplayName = Blank()); EfaNSO; 'Innmeldt dato'; SortOrder.Descending)
)
Clearly I'm doing something wrong, but I struggle to spot the problem. When I'm adding the sort function, I can see somethinh happening in the gallery, but the data won't show. Could anyone take a look at it?