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.
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!
User | Count |
---|---|
24 | |
10 | |
8 | |
6 | |
5 |
User | Count |
---|---|
31 | |
12 | |
10 | |
10 | |
9 |