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
MMPagola
Helper I
Helper I

Duplica registros en una tabla

El objetivo es poder valorizar remitos, saber el monto de la mercadería que fue entregada y todavía no fue facturada. Las tablas que tienen los datos son:

GVA03 que tiene el campo PEN_FAC_RE que es el monto que se debe facturar.

GVA21 que tiene el número de remito con el que la mercadería fue entregada.

MMPagola_0-1627841307820.png

 

Hasta acá, todo funciona perfectamente y veo la información que necesito.

GVA106 que tiene el campo fecha de remito.

Las 3 tablas se relacionan mediante el campo NRO PEDIDO.

Los pedidos pueden remitirse en varios remitos en diferentes fechas. Cada remito se factura individualmente.

Al agregar a la tabla el campo fecha de remito, me duplica los registros ya que hay 2 remitos diferentes en esas fechas. Uno de ellos ya fue facturado y no me debería mostrar esa fecha (16-07-2021).

En ninguna de estas 3 tablas está el campo NRO REMITO.

Lo curioso es que la sumatoria es la correcta ya que las cantidades a facturar son 5040 y 5565 que dan un total de 10605.

MMPagola_1-1627841337746.png

 

Adjunto relaciones entre las tablas

 

MMPagola_2-1627841232743.png

 

¿Qué debo hacer para que no tome la fecha del remito que no corresponde?

 

 

 

 

 

1 REPLY 1
v-stephen-msft
Community Support
Community Support

Hi @MMPagola ,

 

Sorry, not very clear and I can't see your second picture clearly. Please provide some dummy data and expected results.

 

Best Regards,

Stephen 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.