It would be great to be able to create virtual SQL attributes in AGOL. It would be similar to Arcade expressions, but the calculated columns would be exportable and viewable in the attribute table. It would take advantage of the power & efficiency of SQL and would be as easy to set up as a definition query.
Similar to this ArcGIS Pro idea: Virtual Attributes (ad hoc)
Related, but different: