
Announcements
Hello experts,
I'm trying to Sort a gallery depending on the number of users that have the records in the 'Usuarios MeGusta' field. The records are from a Sharepoit list.
This is the code:
Sort(
'DS SPO CoEFullStack Shared Ideas';
CountRows(ThisRecord.'Usuarios MeGusta');
SortOrder.Descending
)
The sort view works perfectly, but I get a delegation problem on the line of CountRows(ThisRecord.'Usuarios MeGusta');
Could you help me? Many thanks in advance.
CountRows() is not a delegatable function, however if you can filter your list to less than 2k records, it won't matter. I suggest:
With({_items: Filter('DS SPO CoEFullStack Shared Ideas'; !IsBlank('Usarios MeGusta'))};
CountRows(_items);
SortOrder.Descending
)