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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
hvillamar
New Member

Joining contents of two tables into one new table

Estimados, 

 

su ayuda, necesito hacer un join de dos tablas 1. cuentas_balance, 2.view_asientos.

en cuentas balance el campo cuentaid  Ejemplo: 0000000006

en view_asientos un campo ruta, dond se encuentra si la cuenta contiene al padreid Ejemplo:  ROOT\0000000001\0000000004\0000000005\0000000006\0000000007\0000000008

 

en este caso deberia darse la coincidencia, recojo el Saldo de view_asientos y deberia irse sumando.

 

gracias por su ayuda.

 

 

1 REPLY 1
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @hvillamar,

 

According to current description, it's not very clear about your requirement. Please elaborate your scenario in English and post some sample data to show your table structure. It would be better to show us an example of your desired output.

 

Based on my understanding, you want to return corresponding column value from table 'view_asientos' and display it in table 'cuentas_balance' as a new column, right? 

 

Based on my assumption, your table structure looks like:

cuentas_balance

Account 
0000000001
0000000002
0000000003
0000000004
0000000005
0000000006

 

view_asientos

Path Balance Value
ROOT\0000000001\0000000004\0000000005\0000000006\0000000007\0000000008 100
ROOT\0000000001\0000000002\0000000003 200

 

Best regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.