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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Nino1
Frequent Visitor

DAX

Hello everyone

 

I'm a new user of Power bi and need your help.

 

I have two tables: one for total revenue and one for exchange rate.

 

datecurrencytotal revenuetotal revenue in USD datecurrencyCurrency Rate
5/31/2022EUR100008000 5/31/2022EUR0.8
5/31/2022USD2000020000 5/31/2022USD1
6/30/2022EUR100009000 6/30/2022EUR0.9
6/30/2022USD2000020000 6/30/2022USD1

I want to calculate difference between currenct revenue in dollar and revenue in dollar adjusted with previous month exchange rate. e.g. (20000+9000) - (20000*1+10000*0.9)

Could you please help me to solve this problem?

Thank you very much!

1 ACCEPTED SOLUTION
technolog
Super User
Super User

Hi!

You should use:

SUM([total revenue])*RELATED([Currency Rate]) - 

CALCULATE(SUM([revenue total])*RELATED([Currency Rate]) , DATEADD('Calendar'[Date], -1, MONTH))

View solution in original post

2 REPLIES 2
technolog
Super User
Super User

Hi!

You should use:

SUM([total revenue])*RELATED([Currency Rate]) - 

CALCULATE(SUM([revenue total])*RELATED([Currency Rate]) , DATEADD('Calendar'[Date], -1, MONTH))

Thank you very much!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.