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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
spaiva
Frequent Visitor

Concatenate lines

I have a table in an Oracle database that stores several lines that refers to only one line in another table.

I would like to know if there is a way to transform this lines in one unique line.Capture.PNG

The column YP_CHAVE is the key so I want to join the lines in YP_TEXTO where this key is the same.

 

Thanks in advance.

6 REPLIES 6
mussaenda
Super User
Super User

This means, YP_SEQ will be disregarded?

And you want it to do in power query?

Yes, that's it.

Anonymous
Not applicable

@spaiva 

If I get you right, try: 

 

Column = CONCATENATE([YP_CHAVE],[YP_SEQ])

 

So for the new column you should have values like 000001001 for text data type,it might show 11 if they are numerical data type. But with either way,each role should be unique.
 
Paul Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I need to join the lines where YP_CHAVE is the same. The values in column YP_TEXTO is brocken down in several lines.

So I want to make a group by YP_CHAVE and concatenate the lines in YP_TEXTO where YP_CHAVE  repeats.

Inkedora_LI.jpg

 

Take a look in the example above. This 3 lines have to be one unique line because the YP_CHAVE is the same for all.

The column YP_SEQ shows where the message begins and end in YP_TEXTO.

Tahreem24
Super User
Super User

@spaiva ,

Try below DAX to get your requirement:

Column = CONCATENATE(Sheet1[Amount],LOOKUPVALUE(Sheet2[Amount],Sheet2[Name],Sheet1[Name]))
Capture.PNG
 
Don't forget to give thumbs up 👍 and accept this as a solution if it helped you.
Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

@spaiva , In my above post my key column is Name. So accordingly create your DAX.

 

Don't forget to give thumbs up 👍 and accept this as a solution if it helped you.

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.