Best way to do group by/ aggregation in xano without using addon?
Options
![Sourabh Jain](https://us.v-cdn.net/6037124/user_avatars/5820568.jpg)
Sourabh Jain
Member ✭
I am new to Xano and this seems to be something that should be very easy to do but I am having a little trouble doing this. I tried searching community and documentation but not able to find an answer which doesn't use the addon. Any help is appreciated.
I have a table which has schema like this
city,item_name, item_state, id
Bangalore,GoPro, Rented, id12
Delhi, PS4, Damaged, id3132
Mumbai, Riding Jacket, In_store, id1313
Bangalore,GoPro, Damaged , id184
Bangalore, PS4 , Rented, id1345
etc
In output, I want to get count of records grouped by city , item_name & item_state. Something like this :
City, Product, Stage, TotalCount
Bangalore,GoPro, Rented, 3
Mumbai, Riding Jacket, Damaged, 2
Bangalore,GoPro, Damaged, 1
I have a table which has schema like this
city,item_name, item_state, id
Bangalore,GoPro, Rented, id12
Delhi, PS4, Damaged, id3132
Mumbai, Riding Jacket, In_store, id1313
Bangalore,GoPro, Damaged , id184
Bangalore, PS4 , Rented, id1345
etc
In output, I want to get count of records grouped by city , item_name & item_state. Something like this :
City, Product, Stage, TotalCount
Bangalore,GoPro, Rented, 3
Mumbai, Riding Jacket, Damaged, 2
Bangalore,GoPro, Damaged, 1
Comments
-
You can make your query an aggregation query from the "output" tab of your "query all records" click the pencil, and then where it says "list". You'll get a bevy of summary query options that will serve you well with your next steps.
-
This is exactly what I was looking for.
Thank you Ray.
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