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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
hobosapien
Helper I
Helper I

Return a value from a column based on a MAX value in another

I have the following table and I am trying to return the name of the person from the Agent column with the max value of AVG Adherence.

 

I attempted to use TOPN but it returns the name and the value, whereas I only need the name to display it in a card.

VAR MaxAdherence =
    TOPN( 1 , 'ct_Call Metrics', 'ct_Call Metrics'[AVG Adherence])
RETURN
    MaxAdherence
 
 
AgentAVG Adherence
Aubriella Maddox88.48%
Connor Oliver86.99%
Luke Rosales84.82%
Jocelyn Vazquez93.24%
Esme Mullen88.35%
Sara Evans91.47%
Elias Marshall87.11%
Donovan Christian87.05%
Rafael Beck89.64%
Shiloh Anderson90.69%
Kehlani Flynn86.41%
Isaias Wiggins91.81%
1 ACCEPTED SOLUTION
ThxAlot
Super User
Super User

ThxAlot_0-1736758066331.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LearnAndPractise(Everyday)


)



View solution in original post

3 REPLIES 3
ThxAlot
Super User
Super User

ThxAlot_0-1736758066331.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LearnAndPractise(Everyday)


)



This worked, thank you!

Irwan
Super User
Super User

hello @hobosapien 

 

please check if this accomodate your need.

Irwan_0-1736723373658.png

create a new measure with following DAX

MaxAdherence = 
var _Max = MAX('Table'[AVG Adherence])
Return
MAXX(
    FILTER(
        'Table',
        'Table'[AVG Adherence]=_Max
    ),
    'Table'[Agent]
)
 
Hope this will help.
Thank you.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.