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.
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:
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 :
¿Alguna idea de por qué el rollup en el nivel total es incorrecto?
saludos
Vincent
Solved! Go to Solution.
Hola @diallonortv ,
Permítanme dar un ejemplo.
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.
@diallonortv , Pruebe algo como
sumx(summarize(Table,Table[entidad jurídica],table[rate type name],"_1", [Sales Amount CDL Real 2]),[_1])
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 ,
Permítanme dar un ejemplo.
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.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
2 | |
2 | |
2 | |
2 | |
1 |