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
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])

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