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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors