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
cv2qm
Helper I
Helper I

USERPRINCIPALNAME DAX for Proxy Users in RLS

Hello Community,

I am trying to implement proxy users for RLS. If proxy user has logged into power bi, he has to see the assigned user data. 'RLS Proxy ' table I am trying to do this by DAX. I tried with IF, Contains and several other functions.

I can't see expected result.

Can anyone guide me how i can achieve this by using below sample data. RLS Proxy table

UPNProxy UPN
gfb7c@Domain.comach3q@Domain.com
twd2e@Domain.comcv2qm@Domain.com
bea4k@Domain.comac7xa@Domain.com
drb7c@Domain.comabcg6@Domain.com

Expected result: IF(USERPRINCIPALNAME() = CONTAINS('RLS Proxy','RLS Proxy'[Proxy UPN])),

Then--> Get UPN value assigned,

Else--> USERPRINCIPALNAME())

 

Thanks

VCK

2 REPLIES 2
amitchandak
Super User
Super User

What is purpose of - CONTAINS('RLS Proxy','RLS Proxy'[Proxy UPN]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Checking UPN is existing aren't in RLS proxy table. If logged in UPN is listed in RLS proxy table, then get assigned UPN. 

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.