Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Graham
Frequent Visitor

Saving Power BI template SQL credentials

I have an issue when sharing a Power BI template with a colleague.

 

I created a Power BI report with parameters, with a connection to our SQL server using an sql stored procedure with a Native Database Query.

 

I then exported the report as a Power BI template.

 

When I run the template, I get asked for the parameters and the connection is made and everything works as expected.

 

However when I share the Power BI template with another user, they enter the parameters as requested and then the credentials screen pops up and the user needs to enter the database username and password. This only happens the first time the template or any other templates are run. After that the database username and password credentials are always there.

 

As I need to share several templates with several different users within the company so I need a way to have the credentials for my data source in there the first time.

 

The credentials must be stored somewhere so I can get the credentials on the users computer without having to physically do it myself.

 

Thanks in advance

 

Graham

 

 

2 REPLIES 2
payyadi
Frequent Visitor

@Graham Any solution for this? I'm in need to share template with business users and don't want them to enter DB details. Rather just choose parameters and see the report.

Anonymous
Not applicable

Hi @Graham,

 

Based on test, current power bi desktop seems not support to setting the public certificate of a template or a pbix file. I try to seting the datasource to public and share it, but when other people open it, power bi will ask him to input the certificate
 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.