You can follow the given steps to get the connection string.
Figure 1:Analysis Services
Note: When you have credentials to your SQL Server, enter the user name and password accordingly.
Figure 2: Database Server
Figure 3: Select the Cube
Figure 4: Save Data Connection File and Finish
This page will automatically be redirected to the sign-in page in 10 seconds.