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

Filter based on username

I'm creating a report locally and then uploading it to a Report Server, I'm clarifying this because when using a measure with username I get two different values depending if I'm opening the report on desktop or the one published, for the published one I get my email for the local one I get my DOMAIN\user.

 

What a I need is a filter on the filter pane that comes with the manager area currently filtered based on the logged user, but the manager acccessing the report should be able to remove this filter and see al areas. And this should be a page level filter.

 

If the currently logged user is not on the table it should show not be filtered to any Area

 

As an example some data:

 

Table 1 Costs by Area

AreaCosts
Security7
Applicaction Development and Support9
IMSU5
Technology3

 

Table 2 Areas

 

Area
Security
Applicaction Development and Support
IMSU
Technology

 

Table 3 Managers

 

ManagerArea
example1@example.comSecurity
example2@example.comApplicaction Development and Support
example3@example.comIMSU
example4@example.comTechnology
1 REPLY 1
Pragati11
Super User
Super User

Hi @Anonymous ,

 

I think you need to use USERPRINCIPLENAME() function. Check the following quick article on difference between USERNAME() and USERPRINCIPALNAME() functions in Power BI and what do they return:

https://www.oreilly.com/library/view/microsoft-power-bi/9781788290142/04082e11-198f-44ed-a1bd-eeb568a9e074.xhtml

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

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.