Hi. I am trying to bring data into an app. The data source is 3120 columns of data. My plan was to turn it into two separate collections then combine it. I ran into the following problems:
1- I'm not sure how to make the record grab dynamic. Ideally, I'd create a collection for the first 2k entries then do the lastN(datasource,maxID - 2000). However, with no ID I'm not sure how I'd do this as counta or countrows will just give me a total of 1000. I think I can get the ID added to the data source resolve this unless someone knows a better way to get an ID number in PowerApps
2- It doesn't look like LastN is working correctly. I used the following code:
ClearCollect(Codex1,'[FIN_GLCodex]');
ClearCollect(Codex2,LastN('[FIN_GLCodex]',1200));
ClearCollect(Codex,Codex1,Codex2);
Here is a gallery of both collections in descending order. The one on the right should go to 88000

When I broke it down, the LastN was grabbing the same data as the first list but just going further. The only time it worked correctly is when I sorted it by a field but when I did that it only collected 3 of the 12 fields. I have no idea why this is occurring. Please help!