I have an If statment filtering a gallery. The items displayed in the gallery are based on the values in 2 dropdowns and works nicely.
If(
!IsBlank(DropdownRegion2), Sort(Filter(Holidays, CountryNoRegion = DropdownCountry2.Selected.Result && Region = DropdownRegion2.Selected.Result), Date, Ascending),
Sort(Filter(Holidays, CountryNoRegion = DropdownCountry2.Selected.Result), Date, Ascending)
)
I need to add a new condition. If the condition is met I want the gallery to not display anything at all. But I don't know how to do the last part of the syntax. I need to add this as the first condition of the If statement. I have validated that the first part works.
If(
CountRows(Distinct(Filter(Holidays, CountryNoRegion = DropdownCountry2.Selected.Result && !(Region = CountryNoRegion)), Region)) >0 && IsBlank(DropdownRegion), Not sure what to put here for displaying nothing
)