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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
lastnn30
Post Patron
Post Patron

Finding the max salary

Hi

I can create a table which shows Dept and Salary, then I can show the max Salary for each dept. After I found the max salary for each dept, can I show the name of person? In excel pivot table if I click on the salary it will open a new sheet and show the record of that person so I would know the name. Can I do that without wrting DAX. Thank you

 

Thanks you very much.

SNAG-0496.jpg

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @lastnn30 

 

It may be that you still need to use DAX in order to accomplish your needs.

Measure:

Max Salary Name =
IF (
    SELECTEDVALUE ( tdEmployee[Salary] )
        = CALCULATE (
            MAX ( tdEmployee[Salary] ),
            FILTER (
                ALL ( tdEmployee ),
                [Department] = SELECTEDVALUE ( tdEmployee[Department] )
            )
        ),
    SELECTEDVALUE ( tdEmployee[Name] )
)

vzhangti_0-1648450723068.png

When you click on the highest Salary in each department, the name of the person is displayed.

 

Best Regards,

Community Support Team _Charlotte

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

2 REPLIES 2
v-zhangti
Community Support
Community Support

Hi, @lastnn30 

 

It may be that you still need to use DAX in order to accomplish your needs.

Measure:

Max Salary Name =
IF (
    SELECTEDVALUE ( tdEmployee[Salary] )
        = CALCULATE (
            MAX ( tdEmployee[Salary] ),
            FILTER (
                ALL ( tdEmployee ),
                [Department] = SELECTEDVALUE ( tdEmployee[Department] )
            )
        ),
    SELECTEDVALUE ( tdEmployee[Name] )
)

vzhangti_0-1648450723068.png

When you click on the highest Salary in each department, the name of the person is displayed.

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Ashish_Mathur
Super User
Super User

Hi,

Write these measure

Salary paid = sum(tdEmployee[Salary])
Highest salary paid to = FIRSTNONBLANK(TOPN(1,VALUES(tdEmployee[Name]),[Salary paid]),1)

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

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.