cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
WP_Adam
Frequent Visitor

Username in Connection string

Hello, 

Fairly new to Power BI and I was wondering if there is a way to add the connecting username to the connection string.

Source = Sql.Database("DB", "Table", [Query="#(lf)EXECUTE [dbo].[PowerBI_Test] @username = 'Login Username here'#(lf)"])

I want to pass the username to a stored procedure. 

Thank in advance for any help

1 REPLY 1
Anonymous
Not applicable

Hi Adam, Did you get this working?

Helpful resources

Announcements
November 2022 Update

Check it Out!

Click here to read more about the November 2022 updates!

Microsoft 365 Conference â__ December 6-8, 2022

Microsoft 365 Conference - 06-08 December

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power BI Dev Camp Session 27

Ted's Dev Camp

This session walks through creating a new Azure AD B2C tenant and configuring it with user flows and custom policies.