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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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

Power BI Monthly Update - August 2025

Check out the August 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.