Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi,
I'm trying to implement a RLS "toggle" to switch RLS off and on for a role. Basically, if RLS is on, the view defaults to display only the user's information.
If it is off, then the user can see all the information in the table.
This is the DAX expression I'm using for my RLS:
As you can see, it's a simple formula. But the toggle isn't working.... its hiding all data no matter what. Can anyone please assist?
Thanks!
You might be able to adapt this approach which has RLS applied to a disconnected table and then uses a calculation group which could be switched on and off to pass the filter.
https://dobbsondata.co.uk/2022/03/08/calculation-groups-and-rls/
Hi @jt197b
I'm afraid this is not possible. The table filter DAX expression is applied to the table where you set it. It evaluates every row in the table but it's not able to get the selected value from a slicer. Slicers and filters in the report cannot affect this DAX expression, so selectedvalue() function always return blank. It's just similar to creating a calculated column in the table, which only considers the row context and cannot be affected by user interactions with slicers/filters in the report.
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 66 | |
| 60 | |
| 45 | |
| 19 | |
| 15 |
| User | Count |
|---|---|
| 108 | |
| 108 | |
| 41 | |
| 30 | |
| 27 |