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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
paulpenaguti
Frequent Visitor

Obtener el valor de una columna en otra tabla

Hola Comunidad!!

 

Tengo el siguiente requerimiento,

 

Deseo obtener de la tabla: Vista_Auxiliar_Movimientos_inventario los datos del campo "Nota"

 

Campo_nota.PNG

y luego insertarlos en una visualizacion de tipo tabla, en la tabla Vista_CuentasPorPagar_Detallada:

 

Visual_Tabla.PNG

 

Las dos tablas estan relacionadas por medio de una tabla puente (Terceros),

 

Relaciones.PNG

 

 

Intente usar la funcion Lookupvalue pero no me funciono debido a que ambas tablas tiene valores duplicados y ninguna tiene valores unicos.

 

Por este motivo agradezco la ayuda para este requerimiento.

 

Gracias!!

 

 

 

1 ACCEPTED SOLUTION

Hi @v-yetao1-msft 

 

This is my case:

 

Notas =
CALCULATE(
FIRSTNONBLANK(Vista_Auxiliar_Movimientos_Inventario[Nota],1),
FILTER(ALL(Vista_Auxiliar_Movimientos_Inventario),Vista_Auxiliar_Movimientos_Inventario[Numero_Documento_Externo] = Vista_CuentasPorPagar_Detallada[NúmDocumentoExterno])
)

 

View solution in original post

5 REPLIES 5
v-yetao1-msft
Community Support
Community Support

Hi @paulpenaguti 

Can you provide us with a complete pbix file ? This will help us deal with the problem better .

 

Best Regard

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.

HI @v-yetao1-msft ,

 

I'm using this column calculate:

 

Operator=
CALCULATE (
    FIRSTNONBLANK ( Shifts[TruckOperatorName], 1 ),
    FILTER ( ALL ( Shifts ), Shifts[UniqueID] = FuelData[UniqueShiftID] )
)

 

It's Working 

Hi @v-yetao1-msft 

 

This is my case:

 

Notas =
CALCULATE(
FIRSTNONBLANK(Vista_Auxiliar_Movimientos_Inventario[Nota],1),
FILTER(ALL(Vista_Auxiliar_Movimientos_Inventario),Vista_Auxiliar_Movimientos_Inventario[Numero_Documento_Externo] = Vista_CuentasPorPagar_Detallada[NúmDocumentoExterno])
)

 

paulpenaguti
Frequent Visitor

Hi @v-yetao1-msft 

 

I hope you are fine.

 

The two tables are associated by the bridge table called "Bridge Documents"

The documents are of the type of purchase invoice, purchase order, remitted purchase, etc.

However, even with that relationship established and when trying to integrate the "Note" field in the table-type visual, the system gives me an error:

"Cannot display visual" "Fix this"

Captura de Pantalla 2022-01-18 a la(s) 1.48.01 p. m..png

Captura de Pantalla 2022-01-18 a la(s) 1.48.12 p. m..png

Captura de Pantalla 2022-01-18 a la(s) 1.48.25 p. m..png

v-yetao1-msft
Community Support
Community Support

Hi @paulpenaguti 

When you get the value of note from the table Vista_Auxiliar_Movimientos_inventario, how to match tabla Vista_CuentasPorPagar_Detallada ? If there is no associated value, the system cannot determine a match.

 

Best Regard

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.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.