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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

FX conversion based on multiple exchange pairs and dates

Hi,

 

I have issues obtaining one specific currency pair from a FX table. I have the following table: 

AkiDTU_0-1635858304345.png

There are multiple dates and various currency pairs. The base currency is EUR, so all BaseFxRates are given in EUR. I need to create a new column with GBP as the BaseFxRate. So basically divide the BaseFxRate by the corresponding GBP for the respective date. I tried to create a new column with all GBP rates, filling up the same rate for each of the dates, afterwards I would create a new column = BaseFxRate / GBP in order to get GBP as base currency. But I can't make the rates date-dependent, thus I am getting the same rate for each row.

 

Creating it directly with a custom column must be possible somehow, but I can't figure out how to.

 

Any help would be most appreciated.

 

Thanks 🙂

1 ACCEPTED SOLUTION

Hi @Anonymous ,

Try like this:

GBP = 
CALCULATE(
    LASTNONBLANK('FxRates'[GBP value],1),
    FILTER(
        'FxRates',
        'FxRates'[Date] = EARLIER(FxRates[Date])
    )
)

vyingjl_0-1636076504612.png

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

Share the link from where i can download your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
amitchandak
Super User
Super User

@Anonymous , remove .[day]

 

if the date has a timestamp then use .Date . Try to avoid that if there is no timestamp in date

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak Thank you, I had that before though, it doesn't change anything, still looks the same.

 

And fill down or something the like is not working either, because the currency pairs GBP:EUR is always somewhere in the middle of one day. So I somehow need to catch that and fill the rows for each day with this one value.

Hi @Anonymous ,

Try like this:

GBP = 
CALCULATE(
    LASTNONBLANK('FxRates'[GBP value],1),
    FILTER(
        'FxRates',
        'FxRates'[Date] = EARLIER(FxRates[Date])
    )
)

vyingjl_0-1636076504612.png

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors