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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
_Regina
Helper I
Helper I

Get the names of top 5 Partners into a text description

Hi all,
 
I am trying to create some descriptive text in my Power BI Report. The requirement is the name of top 5 partners. So the output should be something like this "Top Partners performing better than their average previous year are Partner A, Partner B, Partner C"
 
I have created the below measure but obviously it does not work. How can I list the name of the partners that I get from the variable top_3_partners and concatenate it with the string?
Any help/guidance is appreciated.
Thank you
 
_Text top partners =
var top_3_partners= TOPN(3,ALL(Partner[Partner Name]),[_Overperformer Esign],DESC)
var result= "Top Partners performing better than their average previous year are " & top_3_partners
RETURN result

@amitchandak 
1 ACCEPTED SOLUTION
Alex87
Super User
Super User

You need to use CONCATENATEX to concatenate your results. It does not work as you write it because topN is a table where as DAX measure's result should be scalar.

Look at this video, it explains very well the steps to be taken ( Create insightful calculations using CONCATENATEX goodly)

https://youtu.be/xVLi31mOxeo?si=pONk1uUfEoLXD91t

 

If it answers your query, please mark my reply as the solution. Thank you!




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!




View solution in original post

1 REPLY 1
Alex87
Super User
Super User

You need to use CONCATENATEX to concatenate your results. It does not work as you write it because topN is a table where as DAX measure's result should be scalar.

Look at this video, it explains very well the steps to be taken ( Create insightful calculations using CONCATENATEX goodly)

https://youtu.be/xVLi31mOxeo?si=pONk1uUfEoLXD91t

 

If it answers your query, please mark my reply as the solution. Thank you!




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!




Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.