cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Syndicate_Admin
Administrator
Administrator

Obtener el tipo de cambio de moneda por cada trimestre dentro del conjunto de datos

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

kasiaw29_2-1686297747232.png

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 monedaTipo de cambioVálido desde
OÍR1.77725401/12/2022
BRL6.33240601/12/2022
EURO1.16922201/12/2022
USD1.23157501/12/2022
Zar20.18480801/12/2022
OÍR1.79081101/03/2023
BRL6.26821401/03/2023
EURO1.1350901/03/2023
USD1.223401/03/2023
Zar21.81242101/03/2023
CNY8.36898201/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.

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

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

kasiaw29_1-1686305108420.png

View solution in original post

1 REPLY 1
Syndicate_Admin
Administrator
Administrator

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

kasiaw29_1-1686305108420.png

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors