Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

DAX for RLS?

Is there a way in DAX to achieve the below?

 

I have a model with tables:

-Revenue.

-CostCenter.

 

I have RLS set up for two special users, that I take their USERNAME(), and I give these two users access to a specific sets of CostCenters.

 

Now, I am creating a new PowerBI,  and I am trying to reutilize the same cube.

 

But, the access is based on another table named ‘Contract’, so these same two users shall have access to a set of contracts.

 

Can I have a way of using 2 Power BIs, pointing to the same cube, and in one report they shall see CostCenters x,y,z and in the other Contractoz a, b, c?

 

Or is it more convenient to just “copy paste” the entire cube (use 2 cubes) and do the RLS on each one. (I also ask this in terms of future mainteanance).

1 REPLY 1
v-angzheng-msft
Community Support
Community Support

Hi, @Anonymous 

 

RLS set for one shared dataset will take effect for all the related reports.

Different reports based on the same dataset have the same access control for row-level security.

Copy-pasting multiple datasets for different permissions is a workaround, it's not an elegant solution, but it works.

 

 

Best Regards,
Community Support Team _ Zeon Zheng


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

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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