Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Greetings,
I'm looking to calculate the % difference of change of a exchange rate between dates.
My table structure is the following:
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:
Solved! Go to Solution.
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
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
Thank you, this is exactly what I was looking to accomplish.