Grouping and counting in Xano
Options
![Mr_English](https://us.v-cdn.net/6037124/user_avatars/1271230.jpg)
Mr_English
Member ✭
We have a requirement to produce a report which shows a list of Users grouped by City. The report displays a count of Users per City and is sorted in descending order of count. This data is available from an API.
Report example:
City | Number of Users
Bristol 43
Liverpool 39
Chester 25
etc
We can product a report like this in JavaScript, but I'd much prefer to do this in Xano.
Would it be possible?
Tony
Report example:
City | Number of Users
Bristol 43
Liverpool 39
Chester 25
etc
We can product a report like this in JavaScript, but I'd much prefer to do this in Xano.
Would it be possible?
Tony
Comments
-
Yes this is definitely possible in Xano.
You can do this with the Query All Records function. Choose the aggregate return method and you'll have access to group by, aggregate by, sort by, etc.
(Output tab > Return > Aggregate)
[Screenshot_2021-08-13_17-24-19.png] -
Nice!!
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