Hi, I've got a gallery set up which has 6 columns and about 100 rows. I want it to do 2 things: Every other row should have a background colour so it's easier to distinguish, and I want to place filters on it.
For the background colour thing I'm using the following formula:
ForAll(Sequence(CountRows('SharePoint File')), Patch(Last(FirstN('SharePoint File', Value)), {rowNumber:Value}))))
It gives each row a number, then in TemplateFill I use an if statement to give even numbers a different background colour.
For the filter I use the following formula:
Filter('SharePoint File', Country.Value = DropdownCountry.Selected.Value || DropdownCountry.Selected.Value = Blank(),
Sector.Value = DropdownSector.Selected.Value || DropdownSector.Selected.Value = Blank())
When I use each of these formulas alone there's no problem, it works. But if I try to combine them with a semicolon in between, the whole DataGallery goes away. Can anyone explain to me how (if) I can use both of these unrelated formulas so that I can have the layout I want plus the filters?
Thanks in advance!