The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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:
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?
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.
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.
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.
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.
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...
User | Count |
---|---|
25 | |
10 | |
8 | |
7 | |
6 |
User | Count |
---|---|
32 | |
12 | |
10 | |
10 | |
9 |