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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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