Analysis service stop to work when update or create a new analysis.
Could be a number of reasons and details are required.
Could you explain what exactly you are doing? I would recommend looking at the event logs for errors. In the event viewer, drill into the the application logs from source "PI Analysis Service" and look for errors. Some of the message are very straightforward.
Which version of the PI Analysis Service are you running?
Retrieving data ...