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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
bknowles
Regular Visitor

RLS userPrincipalName OR Usage Program Tag

Hi.

 

I'm really prolific this week.  We're in the implementation stage of one project and the Development stage of another.  I'm the sole Developer/Administrator.

 

My first project was pretty standard.  This second one is a little more complex.  They want basic Active Directory userPrincipalName() RLS to apply except if the cost center in the Usage table has a particular Program Tag.  Our RLS security data is contained in a table called AccountGroupMapping and we link it via a dataflow to a table called PAS Group which contains the Active Directory Security group.  That in turn links to a table called person which contains the PAS Group and the userPrincipalName.

 

Currently, there's only one ProgramTag in the Usage table.  Eventually, there may be more, but there aren't expected to be a lot.  I do have a message out to the DB Developer/Architect confirming that the security for this will never be more complex because otherwise the hierarchy for this could be a nightmare and I'd need to map it all out.

 

I've attached a screenshot of  the data model for the pbix file, but I'd appreciate any ideas you might have for how to write the DAX expression for the roles.

 

bknowles_0-1632508814168.png

 

 

Thanks.

Barbara

 

2 REPLIES 2
v-xiaotang
Community Support
Community Support

Hi @bknowles 

Have you solved your problem? If yes,  could you kindly mark the answer helpful as the solution? 
If not, could you provide more details about your problem? so that we can work on it further. Thanks.


Best Regards,
Community Support Team _ Tang

v-xiaotang
Community Support
Community Support

Hi @bknowles 

I find a post similar, please check if it helps,

vxiaotang_2-1632737986090.png

https://community.powerbi.com/t5/Desktop/Dynamic-RLS/m-p/1931363

 

if you need more help, please @ me

 

 

Best Regards,

Community Support Team _Tang

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

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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