Hello,
I am currently troubled with my Gallery as I try to implement some Filters.
I have this function:
Sort(Filter(Search(IdeaBox_1;SearchBox.Text;"Nazwa";"Opis"); Utworzony >= DatePicker1.SelectedDate &&
Utworzony <= DatePicker2.SelectedDate); Utworzony; If(SortDescending2;Descending;Ascending))
It allow me to use SearchBox data input (and filter by some stuff Nazwa-Name/Opis-Description).
It also allows me to use DatePickers, and button date ascending/descending that filter 'Utworzony" = Date of creation
I need to apply this filter on top of that function:
Filter(IdeaBox_1;'Utworzone przez'.Email=User().Email)
This is the most important filter as this filter the gallery view to only "my" propositions. This is crucial as in this view I allow users to delete/edit theirs propositions.
And I need default sort that will sort propositions in accordance with likes that they received. This was used here:
Sort(
Sort(Search(IdeaBox_1;SearchBox.Text;"Nazwa";"Opis");Utworzony;If(SortDescending2;Descending;Ascending));
Polubienia;Descending)
Sort(Polubienia;Descending)
I would love to have a priority like that:
1. Default view Filter(IdeaBox_1;'Utworzone przez'.Email=User().Email)
2. Default sort Sort(Polubienia;Descending)
3. Optional sort - rest of the stuff (SearchBox - input box, Utworzony - Created, SortDescending2 - Date asc/desc sort).
I also would like to avoid situation with with nested - sort. For example when I Likes were on top of Sort they couldn't be overrided - so for example it was sorting like that:
3 likes - 12.09
3 likes - 11.09
3 likes - 14.09
2 likes - 11.09
2 likes - 09.09
Normaly date filter asc/desc should sort it like that:
2 likes - 09.09
2 likes - 11.09
3 likes - 11.09
3 likes - 12.09
3 likes - 14.09
But with nested sorts it is like that:
3 likes - 11.09
3 likes - 12.09
3 likes - 14.09
2 likes - 09.09
2 likes - 11.09
Likes always has a priority over date.
Please help me to finish this as it is beyond my capability.
I've read a lot about Sort,Filter but this is so far too hard.