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.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 56 | |
| 33 | |
| 32 | |
| 18 | |
| 16 |
| User | Count |
|---|---|
| 65 | |
| 64 | |
| 44 | |
| 30 | |
| 28 |