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
ThisIsVS
Frequent Visitor

Retrieve a value from one column based on Max. Value of another column to show it in a "Card".

Let's say I've the following table named as "Table1".

ThisIsVS_1-1663004691921.png

Want to show the name of Salesperson(s) which corresponds to the Maximum of "Total Sales".
If there exists a tie between "n" Salespersons, then output should be <Salesperson 1>, <Salesperson 2> . . . , <Salesperosn "n">.
Example - 
Suppose in the above table,
Michelle has maximum "Total Sales" then the DAX measure should return "Michelle".
But If John, Daniel, Rihanna have the same maximum "Total Sales" then the DAX measure should return "John, Daniel, Rihanna".



1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @ThisIsVS 
you can try

Top SalesPerson(s) =
CONCATENATEX (
    TOPN ( 1, Table1, Table1[Total Sales] ),
    Table1[Salesperson],
    ", "
)

View solution in original post

4 REPLIES 4
tamerj1
Super User
Super User

Hi @ThisIsVS 
you can try

Top SalesPerson(s) =
CONCATENATEX (
    TOPN ( 1, Table1, Table1[Total Sales] ),
    Table1[Salesperson],
    ", "
)

@tamerj1 It didn't work, Sir.

@ThisIsVS 
I was expecting that. 

Most probably, the presented data represents a table visual not a data table? It is really essential that you provide accurate information. 
Do sales amount and salesperson belong to the same source data?

Is the Total Amount an aggregated amount or values in a source table column?

@tamerj1  Changed "Total Sales" summarization to "Sum", It worked. Thankyou Sir. 🙂

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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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