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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors