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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.