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
mjcastillo
New Member

Dynamic Data Source passing active user like String through MySQL's Stored Procedure

In 'Datazen'  i used the sources calling a stored procedure, assings like string parameter the active user, somenthin like this:

 

call StoredProcedureName('{{ username }}')

 

and dashboard filter all information in base the logged user.

How it works in power bi or is there some other way to the same results.

1 REPLY 1
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @mjcastillo,

 

We can apply a custom sql statement while we can't make it dynamic. The could be other approaches. 

1. Use slicers.

2. RLS, please refer to power-bi/service-admin-rls.

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.