Aggregate based on paging
![Xano Support Chat](https://us.v-cdn.net/6037124/uploads/userpics/FKYXLB95T7IC/nMGWYAJV7MBEL.jpeg)
ADMIN
Hi there, I have a question, in this video you explain how to use aggregate, how could I use only 2 records for that aggregate function instead of all?
Best Answer
-
Because the aggregation is happening before the paging, this is why you are still seeing the full average instead of the average for the records only on that page.
I've put together a video example of a workaround for you here: https://www.loom.com/share/f92553e3ec5b4b4f99db4048e0e52da5
Answers
-
and Paging doesn't work to limit the amount of item when using aggregate-avg
-
I just want it to run agregate-avg function on just the first 2 records, instead of all of them.
-
the total of the records is 3, in the first part of the video I use the function without paging, and it gives me the correct avg of the 3 records, then I apply paging to limit it to 2 records, and it doesn't work, it keeps giving me the avg of the 3
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback