Forum Discussion

harshagraj's avatar
harshagraj
Post Partisan
4 years ago
Solved

Filter out using USERPRINCIPALNAME()

Hello all,

 

Please see the below data. When i publish the below view in the service if i login with "[email protected]" i dont want to see 1st record and If an user login with "[email protected]" we dont need 2nd record.

 

NameEmailScores
Harsha[email protected]1
Gururaj[email protected]2
King[email protected]3

 

I tried creating a column as 
If(email=USERPRINCIPALNAME(),1,0)

 

But since i connected my dashboard as directquery i get an error.

Please help me to filter out the data.

6 Replies