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
javi0unavailabl
Resolver II
Resolver II

How can I concatenate the result of VALUES([Column]) in a single text comma separated.

How can I concatenate the result of VALUES([Column]) in a single text comma separated?

 

Thanks

 

 

2 ACCEPTED SOLUTIONS
Greg_Deckler
Super User
Super User

Use CONCATENATEX


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

Ok. Yesterday, I was using CONCATENATEX badly I think.

Syntax is

CONCATENATEX(<table>, <expression>, [delimiter]) 

I was using the entire table in <table> and VALUES([column]) in <expression> and it doesn't work.

 

Now, I tried using  VALUES([column]) in <table> and the [column] itself in expression and it works:

Measure = CONCATENATEX(VALUES(Table[column]);Table[column];", ")

 

Thanks for putting me on the way.

 

Regards

 

 

View solution in original post

5 REPLIES 5
Greg_Deckler
Super User
Super User

Use CONCATENATEX


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Ok. Yesterday, I was using CONCATENATEX badly I think.

Syntax is

CONCATENATEX(<table>, <expression>, [delimiter]) 

I was using the entire table in <table> and VALUES([column]) in <expression> and it doesn't work.

 

Now, I tried using  VALUES([column]) in <table> and the [column] itself in expression and it works:

Measure = CONCATENATEX(VALUES(Table[column]);Table[column];", ")

 

Thanks for putting me on the way.

 

Regards

 

 

Cool, glad you got there!


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

@Greg_Deckler@javi0unavailabl I've also used 

Measure = CONCATENATEX(Table,Table[column],", ")

But getting the same result as above. 

Anonymous
Not applicable

Hi @Greg_Deckler @javi0unavailabl Is there a way to do this for all values in a column. If I have column values [1,2,2,3,3], I should get 1,2,2,3,3 as the result. When I use the formula in the solution above, I get 1,2,3 as the result.
Thanks in Advance.

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.