So whenever the textsearchbox is empty && Checkbox2_1.Value = false && Checkbox2.Value = true,
It displays this Omschrijving, which is correct; https://gyazo.com/adab9d4c73ed05aca5f2d7eb7aaaad39
Whenever I search for "L=" it displays nothing; https://gyazo.com/adfd59d095a4e756728707cb772d0a3c
The ''Prod. usage' for that row is "Bev M; Montage"
Code;
If(
Checkbox2_1.Value = false && Checkbox2.Value = true,
If(
IsBlank(TekstZoekVeld_1.Text),
Distinct(
Filter(
Lijst_Eindp,
'Prod. usage' = "Bev M; Montage"
),
Omschrijving
),
Distinct(
Filter(
Lijst_Eindp,
TekstZoekVeld_1.Text in 'Prod. usage' || TekstZoekVeld_1.Text in Omschrijving && 'Prod. usage' = "Bev; Montage"
),
Omschrijving
)
)
Full code;
SortByColumns(
If(
Checkbox2_1.Value = false && Checkbox2.Value = true,
If(
IsBlank(TekstZoekVeld_1.Text),
Distinct(
Filter(
Lijst_Eindp,
'Prod. usage' = "Bev M; Montage"
),
Omschrijving
),
Distinct(
Filter(
Lijst_Eindp,
TekstZoekVeld_1.Text in 'Prod. usage' || TekstZoekVeld_1.Text in Omschrijving && 'Prod. usage' = "Bev; Montage"
),
Omschrijving
)
),
Checkbox2_1.Value = true && Checkbox2.Value = false,
If(
IsBlank(TekstZoekVeld_1.Text),
Distinct(
Filter(
Lijst_Eindp,
'Prod. usage' = "Bev M; Montage" && Left(
Bestandsnaam1,
5
) = DataCardValue34.Text
),
Omschrijving
),
Distinct(
Filter(
Lijst_Eindp,
'Prod. usage' = "Bev M; Montage" && Left(
Bestandsnaam1,
5
) = DataCardValue34.Text,
StartsWith(
Omschrijving,
TekstZoekVeld_1.Text
)
),
Omschrijving
)
)
),
"Result"
)
Edit:
I tried to use the in function too but then it results all of the items in 'Prod. usage' with L=
If(
Checkbox2_1.Value = false && Checkbox2.Value = true,
If(
IsBlank(TekstZoekVeld_1.Text),
Distinct(
Filter(
Lijst_Eindp,
'Prod. usage' = "Bev M; Montage"
),
Omschrijving
),
Distinct(
Filter(
Lijst_Eindp,
"Bev; Montage" in 'Prod. usage' &&
TekstZoekVeld_1.Text in 'Prod. usage' || TekstZoekVeld_1.Text in Omschrijving
),
Omschrijving
)
)