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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Filtering based on Username()

Hi,

 

Currently I have some challenges with filtering based on username().

 

I have two tables: Employees and Userinformation.

 

The Userinformation table contains different usernames and Employees contains different profiles.

 

What I need: If the username is present at the Userinformation table, then I want to show all profiles from the Employees table. If not, then show no results.

 

I am fairly new to DAX, so it might be a simple problem.

 

Thanks in advance

1 ACCEPTED SOLUTION
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

Could you mean you want to ues the USERNAME() to filter different data? If so, you could refer to below blog:

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

 

Regards

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

Could you mean you want to ues the USERNAME() to filter different data? If so, you could refer to below blog:

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

 

Regards

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors