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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Dynamic text returning multiple text values

I have a table with a company name and budget. When i click on the company name i want to have a card with dynamic text that will change to show the names of the markets they are in. How do i make a measure like that that shows all the markets. I tried some things but i only get one market back and not all of them.

 

 

Thanks

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

As you can see below using the measure:

 
Market concat = CONCATENATEX('Table';'Table'[Market];",")
concatanex.gif
I achieve the expected result, are you making a measure or a column? Does your table have the Market more than one time per company?
 
If you have more than one value per company try the measure
 
Market concat = CONCATENATEX(DISTINCT('Table'[Market]);'Table'[Market];",")

Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

4 REPLIES 4
MFelix
Super User
Super User

Hi @Anonymous ,

 

You should use the CONCATANEX formula to calculate this should be something similar to:

 

CONCATENATEX(Table, Table[Column], “,”)

 

Check the documentation for further explanation.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Anonymous
Not applicable

Hi @MFelix i am not sure this is what i am looking for. The markets are all in the same column. My data looks like that.

 

 

Company A             France

 

Company A             Germany

 

Company A             Japan

 

 

So company A is in 3 markets. If i use CONCATENATEX all i get is France multiple times for some reason.

Hi @Anonymous ,

 

As you can see below using the measure:

 
Market concat = CONCATENATEX('Table';'Table'[Market];",")
concatanex.gif
I achieve the expected result, are you making a measure or a column? Does your table have the Market more than one time per company?
 
If you have more than one value per company try the measure
 
Market concat = CONCATENATEX(DISTINCT('Table'[Market]);'Table'[Market];",")

Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Anonymous
Not applicable

Thank you so much @MFelix . I didn't put in the Distinct. that was my error. 

 

Many thanks

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.