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
Gui_rodrig
New Member

Difference between accumulated with currency conversion

Good morning / Good afternoon / Good evening
At the moment, I am facing the following difficulty with DAX functions to create a specific measure.
I am analyzing expenses from several countries, so I need a conversion from these local currencies to euros. Additionally, beyond needing this conversion for each country, I also need a specific rate for each month. However, this rate conversion is not based on the month itself but rather on the accumulated value, the "Rate YTD." In other words, if I am analyzing February, the rate applies when both February and January are considered. If I analyze a single month, the difference between accumulations must be calculated. That is, if I want to analyze just February, I need to subtract the accumulated value of the previous month (January) from the accumulated value of February (January + February).
So far, I have the following measure:

Gui_rodrig_0-1742154972866.png

This measure, for now, addresses the issue that for a given month, it will pull the rate based on the last month I filter. That is, if I filter between January and October, it will use the rate for October, but with the accumulated value from January to October.

So far, I have tried several formulas to create a function that, when selecting a single month, automatically calculates the difference between the current accumulated value and the previous accumulated value. However, up until now, I haven’t been able to achieve this, and only the function mentioned above works, but it doesn't calculate the difference between the accumulations.
With that said, how can I improve my current function so that, when selecting a single month, it calculates this difference?

 

Gui_rodrig_1-1742156034483.png

This is part of the model display, but I imagine it’s enough.
Also, I’m not sure if it impacts, but the data segmentation I use when filtering the months is of the "between" type, to facilitate the dynamism when filtering the months.

 

 

4 REPLIES 4
Anonymous
Not applicable

Hi @Gui_rodrig,

I wanted to follow up since we haven't heard back from you regarding our last response. We hope your issue has been resolved.
If the community member's answer your query, please mark it as "Accept as Solution" and select "Yes" if it was helpful.
If you need any further assistance, feel free to reach out.

Please continue using Microsoft community forum.

Thank you,
Pavan.

Anonymous
Not applicable

Hi @Gui_rodrig,

Thank you for reaching out in Microsoft Community Forum.

Please provide sample data that covers your issue or question completely, in a usable format

Please continue using Microsoft community forum.

Regards,
Pavan.

Anonymous
Not applicable

Hi @Gui_rodrig,

Thank you for reaching out in Microsoft Community Forum.

Thank you @lbendlin  for the helpful response.

As suggested by Ibendlin, Please provide sample data that covers your issue or question completely, in a usable format

Please continue using Microsoft community forum.

Regards,
Pavan.

lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information. Do not include anything that is unrelated to the issue or question.
Please show the expected outcome based on the sample data you provided.

Need help uploading data? https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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