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

concatanate a column by row

I am trying to concatenate a column of refernece numbers by load number. I tried doing a simple concatenate formula but it concatenated the entire column into one row. I need just one row at a time concatenated not the entire column. Below is what i used. 

 

 

CONCATENATE(<text1>, <text2>)

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

Hi @Anonymous 

Please correct me if I wrongly understood your question.

Since you did not provide accurate data, I am here to provide a simple example .You can refer to it .

Original data:

Ailsa-msft_0-1619686835551.png

And then transpose the table in Query Editor .

Ailsa-msft_1-1619686835555.png

Ailsa-msft_2-1619686835556.png

Create a measure with CONCATENATE dax. Because CONCATENATE only supports two parameters, when you have multiple columns, you can use nested .

Measure = CONCATENATE(MAX('Table'[Column1]),CONCATENATE(MAX('Table'[Column2]),MAX('Table'[Column3])))

 

The effect is as shown:

Ailsa-msft_3-1619686835557.png

 

Best Regards

Community Support Team _ Ailsa Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-yetao1-msft
Community Support
Community Support

Hi @Anonymous 

Please correct me if I wrongly understood your question.

Since you did not provide accurate data, I am here to provide a simple example .You can refer to it .

Original data:

Ailsa-msft_0-1619686835551.png

And then transpose the table in Query Editor .

Ailsa-msft_1-1619686835555.png

Ailsa-msft_2-1619686835556.png

Create a measure with CONCATENATE dax. Because CONCATENATE only supports two parameters, when you have multiple columns, you can use nested .

Measure = CONCATENATE(MAX('Table'[Column1]),CONCATENATE(MAX('Table'[Column2]),MAX('Table'[Column3])))

 

The effect is as shown:

Ailsa-msft_3-1619686835557.png

 

Best Regards

Community Support Team _ Ailsa Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

@Anonymous 

 

Not clear what you want to do. Please be more specific.

Fowmy
Super User
Super User

@Anonymous 

It depends where your formula is, if you are creating a calculated column in a table then the above will work and go one row at a time but if you want to create a measure then, include the column value within an aggregator like

Measure = CONCATENATE( MAX(<text1>), MAX (<text2>))

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.