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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
mgrodzki
Frequent Visitor

Handling currency convertion with multiple scenarios

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).

mgrodzki_0-1718282307065.png

Fx_rates table looks like this:

mgrodzki_1-1718286393174.png

Meassure in calc group that i failed to fix.

mgrodzki_2-1718286477967.png

 

Thank you.

 

2 REPLIES 2
mgrodzki
Frequent Visitor

Hi,

I did not work unfortunately
Please see below sample of data model I am using. link 

Thank you in advance.

Anonymous
Not applicable

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!

 

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Kudoed Authors