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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
luisClive
Helper III
Helper III

RLS for Power BI Dataset

Hi 

 

I have question reagrding RLS for Power Dataset

 

-so i have a dataset "A" which is connected to report "A"

-dataset "A' is published/refreshed daily via PBI desktop

-Report "A" has no RLS

-Now I have created report "B" which is connected to PowerBI Dataset "A" ( using the Power Bi Dataset option in Enter Data)

 

my question 

How do I set RLS for report "B" only ? i dont want viewing rights for report "A" affected

 

10 REPLIES 10
Erokor
Resolver II
Resolver II

Now, it's not quite the same as traditional Row Level Security. You could keep a list of what users get what level of access in one table and apply a "Security Group" or "Distribution Group" as the RLS check that table that is imported to both data sets and related as follows: 

Erokor_0-1647262709862.png

This would allow you to show access to a Dataset. The users will still have access to the reports, but the data within will be empty due to the filtering on the fact tables.

Greg_Deckler
Super User
Super User

@luisClive Not sure that is possible. RLS roles/rules are defined at the dataset level so the rules are going to be enforced on any report that uses the dataset. I can't think of a work-a-round at the moment. Perhaps a composite dataset for Report B where the RLS rules are placed on the local data model?


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Thank u Greg

 

is it possible to create 2 duplicate datasets?

e.g A1 and A2 and both refresh together

that way i can set RLS on A2?

@luisClive Yes.


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler 

 

Would U be kind enough to point me to a link?

 

I tried your link in footer , but could not find what i was looking for, or maybe I missed it, so much content there...

@luisClive Just copy your PBIX file to a new file. Publish both, now you have duplicate datasets.


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

yes, but then  i would have to refresh two datasets separately instead of one

Not necissarily, If you are only using Dataset A, you would only need to refresh that one. The list of access levels from my psuedo-image would live inside of your Dataset A.

Based on your solution , this is what the distribution should actually look like

luisClive_0-1647266693739.png

 

Yes, therefore, when Carl@name.com or Shelly@name.com logs in they would validate to be able to see both points of data in either report. but Lindsay and James would only be able to see data from items with Report Access of "A" in your fact table.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.