Re: DELEGATION: Workaround?
Hi @seadude,
I always rise to a challenge. One way to do it is to somehow get all of the results into a collection. The problem here is that Collect and ClearCollect are also not delegated so you would have to split your Filter function so that it only collected <2k records at a time. As an example, suppose you are collecting data over several years and that each year you never collect over 2k records.
Concurrent( ClearCollect(yr2016, Filter('[dbo].[myTable]', Year(createdDate) = Year(Now()-2),
ClearCollect(yr2017, Filter( '[dbo].[myTable]',Year(createdDate) = Year(Now())-1),
ClearCollect(yr2018, Filter( '[dbo].[myTable]', Year(createdDate) = Year(Now()));
Collect(allyears,yr2016);Collect(allyears,year2017);Collect(allyears,year2018)
CountRows(allyears) should give an accurate count all of your records. You could also CountRows on each subcollection ie CountRows(yr2017) and be sure that none of the rows is >2000. Then sum the CountRows label values.