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
akj2784
Post Partisan
Post Partisan

How to Validate RLS in Power BI Desktop

Hi All,

 

We have some Row level security applied to roles, we want to test it using some test ids so that we don't have ask real time users to validate it.

 

Is there any way we can do this in Service or Desktop ?

 

Regards,

Akash

5 REPLIES 5
Greg_Deckler
Community Champion
Community Champion

In the Desktop, go to the Modeling tab in the ribbon and in the Security section, choose "View as Roles"



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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

If I do the data model in SSDT, deploy it to SSAS and do a live query in Power BI Desktop, the View as feature is disabled.

And I don't see this feature in Service.

 

Is there any other way to validate it ?

 

 

Hi @akj2784,

 

We are not able to define roles within Power BI Desktop for Analysis Services live connections. We need to implement RLS within on-premises Analysis Services models outside of Power BI. 

 

Reference: Tutorial: Dynamic row level security with Analysis services tabular model

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Agree. My question was more on the validation part.

I have applied RLS in the SSDT, deployed it to SSAS.

Now being a developer how would I test whether my implementation is correct or not. Basically Unit Testing of the code.

Can I impersonate my id to someone else and check the data ?

 

Or what is the way to validate such scenario.

 

Regards,

Akash

Hi @akj2784,

 

Could you see the Test as a role option on service?

  1. Select the ellipsis (...) next to the dataset.
  2. Choose "SECURITY".
  3. Select the ellipsis (...) next to the role.
  4. Select Test data as role

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
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.