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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Dynamic Security in RLS - Collection of Filters passeed as Username

Hi

 

My issue is with Dynamic Security RLS I am following the article here - https://learn.microsoft.com/en-us/power-bi/developer/embedded/cloud-rls

 

GenJohnson_0-1668384087085.png

I need to filter the username, ultimately, as a collection of groups but primarily as onegroup and I need to return rows that our geographic_description “startswith” so if a passed username is ABC rows with a “geographic_description” of “abc” and “abcfg” and “abchgs” would all be returned.

 

This is achieved with  the following code

  • LEFT (CustomerVehicle[geographic_description], LEN ( username() ) ) = username()

 

GenJohnson_1-1668384164182.png

 

What I am trying to achieve is sending through multiple “Business Groups” as filters for the “geographic_descriptions” in the username as a csv string – e.g username() = “abc,xyz,def” as all to be used in a Startswith scenario.


My issue is with creating a collection of filters from the csv of Business Groups and returning the row if the “Geographic_Description starts with ANY of the passed filters “Business Groups

1 REPLY 1
v-zhangti
Community Support
Community Support

Hi, @Anonymous 

 

Please refer to the following links in the hopes of helping you.
Solved: Dynamic RLS with security group - Microsoft Power BI Community

Solved: Security: RLS & filters - Microsoft Power BI Community

Solved: Dynamic RLS filtering multiple tables - Microsoft Power BI Community

 

Best Regards,

Community Support Team _Charlotte

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

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.

Top Solution Authors