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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
tdhlonghorn
Helper I
Helper I

Dynamic RLS with 2 different filter levels

Hello,

 

I'm trying to install Dynamic RLS (using Radacad's guidance linked below) for two different levels of access; some of my users will require access specific to certain account numbers, while others will need broader access to a rollup of accounts called "Abbr P&L." The filter works perfectly for Abbr P&L, but it's not working at all when I test users for AcctNum. What am I doing wrong? Sample .pbix is also linked below.

 

Dynamic RLS Test

 

Radacad

4 REPLIES 4
parry2k
Super User
Super User

@tdhlonghorn there are two issues that need to be fixed.

 

DAX for DynamicUserAccount need to be updated as below

 

[AcctNum] IN SELECTCOLUMNS(
FILTER(
'RolesAccount',
RELATED('User'[User]) = USERPRINCIPALNAME()
),
"AcctNum"
,[AcctNum]
)

 

and the relationship between the user and Role Account need to be as shown below

 

parry2k_0-1595265093477.png

 

Fixed pbix is attached.

 

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Thanks for the reply @parry2k. Thanks to your advice I noticed I didn't set up the User table appropriately; I accidentally put the AcctNum instead of the Role. I've made the update to the source file and left my relationships and code intact; unfortunately the testing is still not working. Your method works as intended when I test it, but I prefer entering the text field (i.e. Warehouse B) in the User table because that Role (Warehouse B) could have multiple AcctNums associated with it.

 

Updated .pbix

 

Also, any hints for how to upload files directly instead of using dropbox would be amazing :).

@tdhlonghorn Unfortunately you have to use external sources to share the file. I couldn't download your latest files, can you double check the link. I will try to take a link, I'm not fully sure from your message what you are looking for but maybe after looking at the file I will have a better understanding.

 

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Thanks @parry2k.  Trying again with the link here.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors