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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Yogisha
Frequent Visitor

DAX Help

Hi Folks,

 

Need help on DAX. I have a requirement where I have to apply below condition on a table.

 

[Level 1] = userprincipalname()

 

Data:

Level 1Level 2Amount
ABC123100
DEF456200
GHI789300
JKL258400

 

And need to ignore the above-mentioned condition when Level 2 user is logged in.

Example : If a user from Level 1 logs in then need to show the amount for that user only. If a user from Level 2 logs in then need to show all the Amount with level 2 info - without any filter. 

 

Thanks in advance!

 

 

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @Yogisha 

Assume you have table

Capture13.JPG

 

Then view as "a@microsoft.com"

Capture14.JPG

 

Then view as "b@microsoft.com"

Capture15.JPG

Best Regards
Maggie
Community Support Team _ Maggie Li
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

3 REPLIES 3
v-juanli-msft
Community Support
Community Support

Hi @Yogisha 

Assume you have table

Capture13.JPG

 

Then view as "a@microsoft.com"

Capture14.JPG

 

Then view as "b@microsoft.com"

Capture15.JPG

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Can same user exist in both Level 1 and Level 2?

Yes..can exist

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.