Aggregating by date not available
Options
Nick_AMS
Member ✭
Hi,
I'm looking to aggregate results from a XANO table by a date field ('month') in this case, but it's not appearing as an option when configuring the output on the query.
Table I'm looking to query-
[image.png]SQL equivalent of what I'd be looking to run would be "Select month, avg(value_eur_per_litre) from fuel_prices group by 1"
Options appearing in the 'Configure return' window.
[image.png]Guessing this means that aggregating by date isn't supported, but any reason why this would be the case?
Any advice on workarounds? Guess I could try querying, changing date field to text and then re-aggregating, but maybe I'm missing a better optoin.
Thanks!
Nick
I'm looking to aggregate results from a XANO table by a date field ('month') in this case, but it's not appearing as an option when configuring the output on the query.
Table I'm looking to query-
[image.png]SQL equivalent of what I'd be looking to run would be "Select month, avg(value_eur_per_litre) from fuel_prices group by 1"
Options appearing in the 'Configure return' window.
[image.png]Guessing this means that aggregating by date isn't supported, but any reason why this would be the case?
Any advice on workarounds? Guess I could try querying, changing date field to text and then re-aggregating, but maybe I'm missing a better optoin.
Thanks!
Nick
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