cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Auto Select On AD Log In

Can anyone help me? I am trying to have a filter alto select depending on who is logging into the report.

 

i.e. John Smith opens the sales report and the filter on the report auto defaults to John Smith, however still has the ability to change the filter to other users as required.

2 REPLIES 2
Super User
Super User

Re: Auto Select On AD Log In

Hi there

Currently as far as I know that is not possible.

The reason being is that when you select an item on a filter, it will always keep what that item name is.

For Example if I select "Blue" as an item on filter, it will always expect the value to be blue.

What possibly might work, is if you have a filter called "Current User" and you have some kind of way to get the current user's login details and default that to "Current User" that might work.

Did I answer your question? Mark my post as a solution!

"Proud to be a Datanaut!"


Power BI Blog
Community Support Team
Community Support Team

Re: Auto Select On AD Log In

Hi @Anonymous

You could set Dynamic RLS for the dataset, so that when John Smith log in with his account and opens the sales report, he will only see the data for him.

While another person (eg. Maggie ) log in with his account and opens the sales report, she will only see the data for her.

Reference:

Power BI – Dynamic Row Level Security – Tips to get it working!

http://radacad.com/dynamic-row-level-security-with-power-bi-made-simple

 

However, in this way, If John Smith is the end user, 

He can only see his own data, he can't see other's data, so that he can't change the filter to other users as required.

 

If John Smith is the Admin (the author of the report, who set RLS for the dataset),

He still has the ability to change the filter to other users as required.

 

Here is a similar thread

https://community.powerbi.com/t5/Service/Can-Power-BI-check-filters-by-default-according-to-users/td-p/66479 

 

Best Regards

Maggie

Helpful resources

Announcements
GregDeckler

How to Get Your Question Answered Quickly

Power BI Super User, Greg Deckler, explains

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Back to School Contest

Back to School Contest

Engage and empower students with Power BI!

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Top Ideas
Users Online
Currently online: 107 members 1,602 guests
Please welcome our newest community members: