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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.