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

DAX filter mapping to Original Email not Current Email used for Login

I want to test my report as a guest account. 

 

I log into powerbi with guest email, to test my report. DAX filter is applied below, but the Users table is pointing to my original email, not guest email? Details are below, thanks for the help.

 

  1. Guest email -  "guestuser@test.us"
  2. original email "fs250254@xxxx.com"
  3. DAX Filter - [AzureAdEmail] = userprincipalname()

The userprincipalname() is returning Original Email  "fs250254@xxxx.com" in the Users Table (Screenshot below). But it got to return my guest email "guestuser@test.us".

 

Could you let me know how I can pass my guest email into userprincipalname(), without hard coding the email?

 

abdul452_0-1632492771818.png

 

 

 

@Greg_Deckler @VahidDM @amitchandak 

2 REPLIES 2
amitchandak
Super User
Super User

@abdul452 , what userprincipalname() name is returning?

 

Also, provide few details on what you want to achieve here.

Hi @amitchandak , I logged into powerbi with guest email ("guestuser@test.us"),

but the userprincipalname() is returning the original email "fs250254@xxxx.com" in the Users table.

 

userprincipalname() got to return my guest email "guestuser@test.us".

 

I want to test my report as a guest account. 

 

abdul452_0-1632493091132.png

 

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.