Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
nnouchi
Helper I
Helper I

Calculate the difference in change % between a currency value over a time period

Greetings,

 

I'm looking to calculate the % difference of change of a exchange rate between dates.

 

My table structure is the following:ER.PNG

Is it possible to calculate the % change between each row in a structure of this kind in Power BI?

 

I have tried this for one single column and have been unfortunately unable to figure this out. Here's my measure I created: 

 
DIVIDE(sum('Currency Rates'[Value.CAD]) - CALCULATE(Sum('Currency Rates'[Value.CAD]),PARALLELPERIOD('Currency Rates'[Dates],-1,MONTH)),SUM('Currency Rates'[Value.CAD]),-1)
 
 
Any help would be greatly appreciated.
Thanks,
 
Nic

 

 

 

1 ACCEPTED SOLUTION
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @nnouchi,

 

Please try this measure:

% diff =
VAR currentmonthval =
    SUM ( 'Currency rates'[Value.CAD] )
VAR previousmonthval =
    CALCULATE (
        SUM ( 'Currency rates'[Value.CAD] ),
        FILTER (
            ALLSELECTED ( 'Currency rates'[Dates] ),
            MONTH ( 'Currency rates'[Dates] )
                = MONTH ( MAX ( 'Currency rates'[Dates] ) ) - 1
        )
    )
RETURN
    DIVIDE ( currentmonthval - previousmonthval, currentmonthval )

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @nnouchi,

 

Please try this measure:

% diff =
VAR currentmonthval =
    SUM ( 'Currency rates'[Value.CAD] )
VAR previousmonthval =
    CALCULATE (
        SUM ( 'Currency rates'[Value.CAD] ),
        FILTER (
            ALLSELECTED ( 'Currency rates'[Dates] ),
            MONTH ( 'Currency rates'[Dates] )
                = MONTH ( MAX ( 'Currency rates'[Dates] ) ) - 1
        )
    )
RETURN
    DIVIDE ( currentmonthval - previousmonthval, currentmonthval )

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you, this is exactly what I was looking to accomplish. 

 

 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.