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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Sumx con resumen para la conversión multicurrido (transacción e informes)

Hola

Estoy haciendo una conversión de múltiples monedas ( Múltiples monedas de transacción y múltiples monedas de informe ) . Y la lógica abajo funcionó bien, pero no funciona bien con el aumento de datos y se quedó sin memoria.

Mi lógica anterior era este modelo:
ModelModelo

Utilizo las fórmulas siguientes:

ExchangeRate:-MIN(FactExchangeRate[Rate])

Importe de ventas CDL Real:

Var SalesCtm if(HASONEVALUE('Currency Consolidation'[Currency Consolidation]) && HASONEVALUE('Type Exchange Rate'[Rate Type Name]),SUMX(FILTER('Sales Information','Sales Information'[ProductCode]<>"Unknown"),[ExchangeRate]*[Amount Local Currency]))
devolver SalesC


Esta lógica funciona muy bien, pero en términos de rendimiento y memoria es subóptima (conseguir problema con un conjunto de datos más grande)

Así que estoy tratando de sumar toda la línea de factura para el mismo día y la misma moneda (por lo que el SUMX iterar aunque menos líneas) que el mismo día y la misma moneda de transacción tendrá la misma tasa:


Por lo tanto, utilizo estas dos fórmulas:

Importe de ventas CDL Real 2:

Var SalesCtm if(HASONEVALUE('Currency Consolidation'[Currency Consolidation]) && HASONEVALUE('Type Exchange Rate'[Rate Type Name]),SUMX(SUMMARIZE('Sales Information','Sales Information'[ProductCode]<>"Unknown"),'Sales Information'[InvoiceDate112],'Sales Information'[transactioncurrency])[ExchangeRate])"[Importe)

devolver SalesC

Importe moneda local:-SUM('Información de ventas'[LineAmountMST])

Ahora tengo un comportamiento muy extraño cuando lo uso de Excel :

Si arrastro la moneda de la transacción en la fila el resultado es correcto pero el total es incorrecto, por lo que estoy completamente confundido :

IssueSummarizeTotal.png

¿Alguna idea de por qué el rollup en el nivel total es incorrecto?

saludos

Vincent




1 ACCEPTED SOLUTION

Hola @diallonortv ,

v-lionel-msft_0-1598863439339.png

Permítanme dar un ejemplo.

v-lionel-msft_0-1598864016937.png

Saludos
Lionel Chen

Si este post ayuda,entonces considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@diallonortv , Pruebe algo como

sumx(summarize(Table,Table[entidad jurídica],table[rate type name],"_1", [Sales Amount CDL Real 2]),[_1])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi, Thanks for helping out, I tried your logic but it didn't worked. So I changed the formula for the following :

Sales Amount CDL Actual 2:=

Var SalesC= if(HASONEVALUE('Currency Consolidation'[Currency Consolidation]) && HASONEVALUE('Type Exchange Rate'[Rate Type Name]),
SUMX(
SUMMARIZE(
FILTER('Sales Information','Sales Information'[ProductCode]<>"Unknown"),
'Sales Information'[InvoiceDate112],
'Sales Information'[transactioncurrency],
"AggLineAmount",SUM('Sales Information'[LineAmountMST])
),[ExchangeRate]*[AggLineAmount]))
return SalesC

But it still give the same  weird result at total level

Hola @diallonortv ,

v-lionel-msft_0-1598863439339.png

Permítanme dar un ejemplo.

v-lionel-msft_0-1598864016937.png

Saludos
Lionel Chen

Si este post ayuda,entonces considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

Anonymous
Not applicable

thanks,I am trying to move my analysis services tabular model into a tabular to explain better me problem but I have been sick to I work slowly.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors