Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I have a report that is on RLS and using the userprincipalname().
The user name is on the pick list- and it shows- but can't make it where it is automatically selected when report opened.
the user name resolves on the userprincipalname() however it will only be selected when the user selects themselves.
Thanks for your help
Solved! Go to Solution.
Hi @jplarios
To force a user name to be automatically selected, this requires a dynamic default selection since the user name isn't known until they connect to the report/model (so it can't be determined in the semantic model in advance).
The only way I'm aware of to do this currently would be using the Preselected Slicer custom visual.
It requires you to create a measure returning true/false that is evaluated for each item on the slicer, and create a column containing true/false values for the "Dirty Status" field well.
PBIX example attached to demonstrate automatic selection (RLS not set up).
Is this the sort of thing you're looking for?
Hi @jplarios
To force a user name to be automatically selected, this requires a dynamic default selection since the user name isn't known until they connect to the report/model (so it can't be determined in the semantic model in advance).
The only way I'm aware of to do this currently would be using the Preselected Slicer custom visual.
It requires you to create a measure returning true/false that is evaluated for each item on the slicer, and create a column containing true/false values for the "Dirty Status" field well.
PBIX example attached to demonstrate automatic selection (RLS not set up).
Is this the sort of thing you're looking for?
This was a good example solution. Thank you Owen
User | Count |
---|---|
16 | |
14 | |
13 | |
12 | |
11 |
User | Count |
---|---|
19 | |
16 | |
15 | |
11 | |
9 |