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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
PJHos
Advocate I
Advocate I

return a single name for top sales using dax for dynamic text box

HI all,

 

I am writing some dynamic text to go alongside a report. I want to provide the name of the top item sold in my report, it appears a really easy ask but I cannot seem to figure it out

 

I have looked at RANKX and TopN but these seem return a category rank or a table what i am looking for is to return a name, as below the measure should just return the name 'Shoes' as top item sold

 

Item                 sold

shoes               100

trainers             80

shirts                70

socks                10

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

2 REPLIES 2
Ahmedx
Super User
Super User

pls try this

Screenshot_2.pngScreenshot_1.png

Absolutely wonderful thank you worked a charm

 

Helpful resources

Announcements
Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Solution Authors