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

Dynamic Row Level Security on intersection of 2 fields from different tables

I have a requirement for dynamic security that I haven't been able to figure out.  Not sure if it's a tool limitation or just requires more complicated DAX than I understand.

 

The requirement is to secure on a combination of Country and Business Unit.   These are both attributes/master data fields.  So I have a fact table, and then 2 dimension tables.  (1 dimension table contains Country, 1 contains BU)

 

Below is an example from the Security table

 

UserCountryBusiness Unit
Joe_Smith@abc.comCABU025
Joe_Smith@abc.comUSBU026

 

When I try to add the DAX filter logic, I have to pick 1 of the dimension tables to apply the filter, and if I try to reference the column from the 2nd dimension table, I get an error during the syntax check.

 

"The column 'table2[Country]' either doesn't exist or doesn't have a relationship to any table available in the current context."

 

I was able to get this to work in a POC I did but both Country and Business Unit were on the same table in that example.

 

 

3 REPLIES 3
v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @aaverbec,

If there is a relationship betweem the fact table and dimension table. You should create a relationship between the tables, then use the RELATED function to get the value in fact table. Could you please share your sample data for further analysis?

Best Regards,
Angelia

The two fields we are securing on come from 2 different dimension tables that both relate to the fact table.  Let me know if the pictures below are not sufficient.
Model.JPGBus_Unit Filter.JPGPlant Filter.JPG
Anonymous
Not applicable

I have the same use case. Have you found any solution or workaround?

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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!

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
Top Kudoed Authors