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 a todos
He estado dando vueltas en círculos con RESUMIR, AGRUPAR POR sin ningún efecto. Aquí está mi problema:
Tengo una tabla de tipos de cambio de divisas con las siguientes columnas: Código de moneda, tipo de cambio, válido desde, Qtr
Los datos anteriores son ingresados por mi departamento de finanzas mensualmente en nuestro sistema fuente. Lo estoy recuperando todo, pero necesito averiguar cuál era el tipo de cambio al final de cada Qtr, por lo que la salida ideal (probablemente como una nueva tabla) se vería así:
Código de moneda | Tipo de cambio | Válido desde |
OÍR | 1.777254 | 01/12/2022 |
BRL | 6.332406 | 01/12/2022 |
EURO | 1.169222 | 01/12/2022 |
USD | 1.231575 | 01/12/2022 |
Zar | 20.184808 | 01/12/2022 |
OÍR | 1.790811 | 01/03/2023 |
BRL | 6.268214 | 01/03/2023 |
EURO | 1.13509 | 01/03/2023 |
USD | 1.2234 | 01/03/2023 |
Zar | 21.812421 | 01/03/2023 |
CNY | 8.368982 | 01/03/2023 |
Por lo general, trato de resolver las cosas tanto como puedo por mi cuenta antes de recurrir a la comunidad. Realmente podría apreciar que alguien arrojara algo de luz sobre esto, debo estar perdiendo algo.
Solved! Go to Solution.
Logré solucionar mi propio problema usando lo siguiente
Quarterly Rates = SUMMARIZE(
'IFS Currency Exchange Rates',
'IFS Currency Exchange Rates'[CURRENCY_CODE],
'IFS Currency Exchange Rates'[Qtr],
"Max Date",
MAX('IFS Currency Exchange Rates'[VALID_FROM]),
"Rates",
LOOKUPVALUE('IFS Currency Exchange Rates'[CURRENCY_RATE],
'IFS Currency Exchange Rates'[VALID_FROM],
MAX('IFS Currency Exchange Rates'[VALID_FROM]),
'IFS Currency Exchange Rates'[CURRENCY_CODE],
'IFS Currency Exchange Rates'[CURRENCY_CODE]))
Logré solucionar mi propio problema usando lo siguiente
Quarterly Rates = SUMMARIZE(
'IFS Currency Exchange Rates',
'IFS Currency Exchange Rates'[CURRENCY_CODE],
'IFS Currency Exchange Rates'[Qtr],
"Max Date",
MAX('IFS Currency Exchange Rates'[VALID_FROM]),
"Rates",
LOOKUPVALUE('IFS Currency Exchange Rates'[CURRENCY_RATE],
'IFS Currency Exchange Rates'[VALID_FROM],
MAX('IFS Currency Exchange Rates'[VALID_FROM]),
'IFS Currency Exchange Rates'[CURRENCY_CODE],
'IFS Currency Exchange Rates'[CURRENCY_CODE]))
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 |