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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
tejakpa
Regular Visitor

Power bi embedded issue


Hi, I'm having difficulty setting up Power BI Embedded sample app for a dashboard. I used the sample app to upload the PBIX file, which has only two tables imported from Azure SQL using Direct Query. I provisioned the Workspace Collection and created workspace, and updated the web.config with relevant information. When I run the Power BI embedded sample web application, it shows the dashboard and correct titles for the visuals. However, it doesn't render the visuals (technical details show 401 error). I have specified the connection string using the sample app. When I publish the PBIX file to powerbi.com, I need to manually enter the credentials when viewing the dashboard. Has anyone faced a similar problem? Please help.

1 REPLY 1
Eric_Zhang
Microsoft Employee
Microsoft Employee

@tejakpa

Did you configure the credential for the dataset that using direct query in Power BI Embedded?

Capture.PNG

 

The visual is rendered with data after setting the username and password.

Capture2.PNG

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.