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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
PJHos
Helper I
Helper 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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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