Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
Hi All,
I have below data model. All values are in EUR and i want to convert them to Local Currency based on slicer selection.
Budget and Country upload has different rates for each month. I want to use calcuation groups to do it, but I stucked.
I cannot make a working meassure to retrive rate based on both date and entry_type(country_upload and budget).
Fx_rates table looks like this:
Meassure in calc group that i failed to fix.
Thank you.
Hi,
I did not work unfortunately
Please see below sample of data model I am using. link
Thank you in advance.
Hi @mgrodzki ,
Please try:
Create a measure that retrieves the appropriate exchange rate from the table based on date and entry_type.
Exchange Rate =
VAR SelectedDate = SELECTEDVALUE('Date'[Date])
VAR SelectedEntryType = SELECTEDVALUE('EntryType'[Type])
RETURN
CALCULATE (
AVERAGE('Fx_rates'[Rate]),
'Fx_rates'[Date] = SelectedDate,
'Fx_rates'[EntryType] = SelectedEntryType
)
Now, you can create calculation groups to use for different situations.
If the syntax I provided didn't help you solve the problem, I would be grateful if you could provide me with the pbix file or sample data.
Remember to remove sensitive data and do not log in to your account in Power BI Desktop when uploading the pbix file.
If you have any other questions please feel free to contact me.
Best Regards,
Yang
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
19 | |
13 | |
10 | |
9 | |
9 |