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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register 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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 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.