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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! 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
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Solution Authors