Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
v-juanli-msft
Community Support
Community Support

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

GilbertQ
Super User
Super User

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 Super User!







Power BI Blog

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.