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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
srbh93
New Member

Dynamically switching Snowflake schema based on user login without using RLS

There is data stored for different clients in different schemas within a Snowflake database. How do I change the schema connected to the Power BI report depending on the logged in user.There is a table in the Snowflake database that associates users with their respective schemas.I am aware there is userprincipal name available in DAX query but is there a way to acheive this in Power query and not to use RLS? 
Kindly help me out with this issue. 

1 REPLY 1
Anonymous
Not applicable

Hi @srbh93 ,

Your requirement can be interpreted as the need to dynamically obtain user information to change the data source. But whether it's Power BI or Power Query, there's no way for the data source to be dynamic.

vjunyantmsft_0-1710402364046.png


Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors