I think your user type does not support analysis in ArcGIS Online. You need at least a Creator User Type to perform spatial analysis in the Map Viewer. In the Map Viewer, go to the top right and click your login->my settings. When the page changes, click Licenses. What is your User Type and User Role?