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
jplarios
Frequent Visitor

How to open a report with a preselected filter on the UPN

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

1 ACCEPTED SOLUTION
OwenAuger
Super User
Super User

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).

 

Preselected slicer.gif

 

Is this the sort of thing you're looking for?


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

View solution in original post

2 REPLIES 2
OwenAuger
Super User
Super User

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).

 

Preselected slicer.gif

 

Is this the sort of thing you're looking for?


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

This was a good example solution. Thank you Owen

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.