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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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


Follow on LinkedIn
@ 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


Follow on LinkedIn
@ 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!


Follow on LinkedIn
@ 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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.