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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
DLB13
Helper I
Helper I

Dynamic Text Based on Variable

Hi all - 

 

Quick question from a brand new user with a problem I am hoping to solve today. I am looking to display the most frequent responses to a survey--data is stored in Excel. Let's say it's "what are your favorite fruits." I would like the variables to be counted and the top three items - as text - show up in a power BI report. I've been doing a bit of googling, but haven't found quite the right trick yet. Thanks in advance for advice!

 

1 ACCEPTED SOLUTION
v-deddai1-msft
Community Support
Community Support

Hi @DLB13 ,

 

Would you please show us some sample data? And we can help you well.

 

According to your description, I created some sample data myself, hope this will help you.

 

Untitled picture5.png

 

 

Please refer to the pbix file: https://qiuyunus-my.sharepoint.com/:u:/g/personal/pbipro_qiuyunus_onmicrosoft_com/EaWiun0mzHNBkwGdlV...

 

Best Regards,

Dedmon Dai

View solution in original post

2 REPLIES 2
v-deddai1-msft
Community Support
Community Support

Hi @DLB13 ,

 

Would you please show us some sample data? And we can help you well.

 

According to your description, I created some sample data myself, hope this will help you.

 

Untitled picture5.png

 

 

Please refer to the pbix file: https://qiuyunus-my.sharepoint.com/:u:/g/personal/pbipro_qiuyunus_onmicrosoft_com/EaWiun0mzHNBkwGdlV...

 

Best Regards,

Dedmon Dai

d_gosbell
Super User
Super User

It's hard to answer this precisely without know what the names of your tables and columns are, but you should be able to use a pattern like the following using CONCATENATEX over the TOPN function:

 

CONCATENATEX( TOPN(3, Responses[Fruits], [Count of Responses) , Response[Fruits], ",")

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors