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
Syndicate_Admin
Administrator
Administrator

Cómo multiplicar dos columnas en tablas separadas

Hola

Tengo dos mesas:

  • IRG_ANALYSIS: contiene el total de cada línea
  • IRG_CODES : contiene la 'tasa' (taux)

Están vinculados por una columna combinada

IRG_ANALYSIS tabla :

IRG ANALYSIS.png

IRG_CODE tabla :

IRG_CODE.png

Cuando selecciono mis columnas, la velocidad se muestra correctamente (columna "TAUX"):

RESULT.png

Me gustaría multiplicar "total" por "taux".

Probé esto:

TotalIRG = CALCULATE( (SUM(IRG_ANALYSIS[Total]) * (SUM(IRG_CODES[TAUX])) /100
)

Pero el resultado no es correcto: 42 en lugar de 21.15 (52.87 * 40/100 = 21.15)

RESULT2.png

Gracias por su ayuda.

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

Resuelto mediante el uso de :

TotalIRG =
SUMX ( IRG_ANALYSIS, IRG_ANALYSIS[Total] * RELACIONADO ( IRG_CODES[TAUX] ) / 100 )

View solution in original post

3 REPLIES 3
Syndicate_Admin
Administrator
Administrator

Resuelto mediante el uso de :

TotalIRG =
SUMX ( IRG_ANALYSIS, IRG_ANALYSIS[Total] * RELACIONADO ( IRG_CODES[TAUX] ) / 100 )

Syndicate_Admin
Administrator
Administrator

@RemiBoi , ¿Puede compartir datos de ejemplo y salida de ejemplo en formato de tabla? O un pbix de ejemplo después de eliminar datos confidenciales.

No hay @amitchandak

Actualicé mi publicación, algo mal sucedió (todas las capturas de pantalla se han eliminado ..)

Gracias

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.

Top Solution Authors