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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
jag1912
New Member

Issues in Implementing Dynamic Row level Security

Hi 

I am trying to implement dynamic row level security for my PBI report. We have table which is having two columns useremail and teampath.  I want to filter data on the report based on the user logged and giving access to  the teampaths to which this user is assigned. My model has 3 facts  which are interlinked. Relationship flow is set bi directional where ever required. When I testing it, all the visuals on report are not refreshing as per dynamic access. Only the visuals which are dependent on fact which is linked to teampath holding dimension are refreshing. But when I am going on the Teampath slicer manually on the report and selecting all the teampath with shift key multi select, its working fine. Below is the DAX formula implemented.

[Teampath] = LOOKUPVALUE(UserPermissions[Teampath],UserPermissions[userEmail],USERPRINCIPALNAME(),UserPermissions[Teampath],dim_codeinsightProject[Teampath]) && NOT(ISBLANK(dim_codeinsightProject[Team-path]))

 

It seems that select all on the top is causing this issue.

jag1912_0-1644239101805.png

Because when I am manually selecting these teampaths with shift key except select all , its working fine.

Thanks for the suggestions.

 

 

2 REPLIES 2
jag1912
New Member

This issue is now resolved. I played with all the relationships and applied security filters in both directions on couple joins. Then it started refreshing all the visuals. The nature of this data is very confidential thats why I couldn't post many details here.

v-yanjiang-msft
Community Support
Community Support

Hi @jag1912 ,

It's hard to reproduce your problem, could you please provide a sample file or more details?

Best Regards,
Community Support Team _ kalyj

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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