Forum Discussion

dxg169's avatar
dxg169
Frequent Visitor
3 years ago
Solved

Help with converting source cashflows in consistent currency

Hi All - I'm sturggling to work out how to convert source cashflows in local currency into USD so I can then aggregate. I was initially trying to create a measure using look up to bring in fx rate ne...
  • johnt75's avatar
    3 years ago

    Create a calculated column on the cashflows table like

    Cashflow USD =
    VAR CurrentCurrency =
        RELATED ( 'Fund mapping'[Currency] )
    VAR CurrentDate = 'Cashflows'[Date]
    VAR Rate =
        LOOKUPVALUE (
            'FX rates'[FX rate],
            'FX Rates'[Date], CurrentDate,
            'Fx Rates'[Currency], CurrentCurrency
        )
    RETURN
        'Cashflows'[Cashflow] * Rate