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
joakimfenno
Helper V
Helper V

Overriding row level security

I have an SSAS tabular model where I have implemented row level security

the user (win account) do only access to sales for the company he or she belongs to

 

this works fine but we also have the requirement that all users should see the total sales (for all companies)

 

I have tried to acheive this using DAX (excluding company-filter for a measure) but it seems like row level security overrides the measure

 

another option is to create a separate table for the total but it will result in a lot of duplicate data and possibly a worse user experience when accessing the tabular model directly (requires a better technical understanding)

 

This is what someone with full access (no row level security) should see

 

CompanySalesTotal Sales
A100190
B50190
C40190

 

This is what a user belonging to Company A should see

 

CompanySalesTotal Sales
A100190
2 REPLIES 2
Anonymous
Not applicable

Hi @joakimfenno ,

So far, to my knowledge, your requirement could be realized currently, because your RLS  set for the table's row, and your sales infomation is one table, the rule from RLS will apply to people. 

The only solution I can think of is that you create a new table with only the sales column in it. now, you could create a measure with this column and add it to the table visual.

vbinbinyumsft_0-1667540215169.png

I create a example in Power BI Desktop, please refer the attached .pbix.

 

Best regards,
Community Support Team_ Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

creating a separate table is an option but it will require storage of a lot of duplicate data which I want to avoid

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.