Hi,
I have a SharePointlist that would increase and get larger. The sharepointlist is now 10 000.
In the app I have made a collection that will only show data from today split, into half year (H1, H2) depending on wich month we are in.
Onvisible
If(
Month(Now()) >= 01 && Month(Now()) <= 06,
ClearCollect(
colKontaktMedArbeidsgivere,
Filter(
Kontakt_med_arbeidsgivere,
År = Year(Now()) And Halvår = "H1"
)
),
ClearCollect(
colKontaktMedArbeidsgivere,
Filter(
Kontakt_med_arbeidsgivere,
År = Year(Now()) And Halvår = "H2"
)
)
)
The gallery code
SortByColumns(
Filter(
colKontaktMedArbeidsgivere,
StartsWith(
'Type henvendelse',
ddTypeHenvendelseFilterArbG_1.Selected.Name
) && StartsWith(
Kanal,
ddKanalFilterArbG_1.Selected.Name)
&& StartsWith(
'Arbeidsgivers landstilhørighet',
ddArbeidsgiversLandFilterArbG_1.Selected.Name)
&& StartsWith(
Nace,
ddNaceFilterArbG_1.Selected.Name),
GruppeNavn =varFylkeNavn Or varAdminNCO ="AdminNCO"
),
"Oppdatert_dato",
SortOrder.Descending
)
In the app you will have the ability to pick year from a dropdown and halfyear from a dropdown and then click on butten Load data
I cant get this code to work
ClearCollect(
colKontaktMedArbeidsgivere,
Filter(
Kontakt_med_arbeidsgivere,
År = ddAar_data.Selected.Value And Halvår = ddHalvår_data.Selected.Value
)
)
If I choose 2023 it seems to work, but no other year.
Please help