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
jimen
Regular Visitor

DAX on RLS

Hi all, I wanted to make relationship between the security table and the fact table without having the connection in the modelling part. FacSecAccess is the security table. So I'm planning to do RLS role that can filter which email (in table FacSecAccess) that can access particular permission/department in FacPrmsn table that connected to the Data table without having the connection between the FacSecAccess and FacPrmsn. Any idea on how to do this? 

 

Data and FacPrmsn connection key = DEPT_C

 

FacPrmsn and FacSecAccess connection key = Prmsn/PRMSN

Capture.PNG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @jimen ,

I have created a simple sample, please refer to my pbix file to see if it helps you.

vpollymsft_0-1648181320016.png

 

Create a measure in table FacPrmsn.

Measure = (LOOKUPVALUE(FacSecAccess[e-mail],FacSecAccess[PRMSN],MAX(FacPrmsn[PRMSN])))

Then create a measure in table FacSecAccess.

Measure 2 = FacPrmsn[Measure]

Then create roles.

vpollymsft_1-1648181456836.png

Then view as the role.

vpollymsft_2-1648181488221.png

If I have misunderstood your meaning, please provide you pbix file without privacy information and desired output.

 

Best Regards

Community Support Team _ Polly

 

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

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @jimen ,

I have created a simple sample, please refer to my pbix file to see if it helps you.

vpollymsft_0-1648181320016.png

 

Create a measure in table FacPrmsn.

Measure = (LOOKUPVALUE(FacSecAccess[e-mail],FacSecAccess[PRMSN],MAX(FacPrmsn[PRMSN])))

Then create a measure in table FacSecAccess.

Measure 2 = FacPrmsn[Measure]

Then create roles.

vpollymsft_1-1648181456836.png

Then view as the role.

vpollymsft_2-1648181488221.png

If I have misunderstood your meaning, please provide you pbix file without privacy information and desired output.

 

Best Regards

Community Support Team _ Polly

 

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

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.