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
mtaneja
New Member

Power BI Security

Hi All. 

Need help to implement security at at combination of row & column level (partial columns in a ROW).  Following is the sample data, First table contains data with Full Access role and second table contains data post secuirty with partial access role (secured columns in red). 

 Without security (Full Access role) – 

 

mtaneja_2-1712614440999.png

With security (Partial Access role) - 

 

 

mtaneja_3-1712614456387.png

 

 

We tried writing DAX with email ID's hardcoded and it worked but we are not able to implement DAX at role level. Following is th snipped of DAX. Also, while defining Roles we are not able to access measures in DAX.

if(userprincipalname() in{emailid1, emailid2..} && min(table[colsection])="Sample1", table[qtrcalculation])

 

Please help and let us know inc ase further details are required. 

 

1 REPLY 1
amitchandak
Super User
Super User

@mtaneja , for RLS you can consider roles

With tbale having email and data access values filtering you dimension or table

[email]= userprincipalname()

 

For column/Measure you can consider OLS, but it may error when you do not have access

What is Object Level Security (OLS): https://youtu.be/u4seqaMuzM8

 

You can also consider this for measure

 

if(userprincipalname() in{emailid1, emailid2..} && min(table[colsection])="Sample1", [Measure], blank() )

 

Power BI- Row Level Security(RLS): Handle ALL, UserPrincipalName: https://youtu.be/KVLEnIUo4pc

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

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.