You can save ad hoc analyses in an export file. This functionality is available in the Explorer tab and in the Administration tab.
Procedure
The ad hoc analysis is saved as a file with all the views.
You can import exported ad hoc analyses.