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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
mshiva
Frequent Visitor

Need to Get Currency Exchange Rate from FX table based on the Max of date from slicer and Get max of

Need to Get Currency Exchange Rate from FX table based on the Max of date from slicer and Get max of date and apply same rates for all transaction . 

Ex: Date Slicer Jan 8-1-2023 and Currency Code = 'EUR'

Now I need to get  exchance rate of 8-1-2023 and Currency Code = 'EUR' ,exchange rate is 1.5 . I need to mutiply all transactions with 1.5 where currency code is EUR . 

Currently there is no Join to Fact and FX Table 

3 REPLIES 3
mshiva
Frequent Visitor

I have calender has filter not Currency . 

amitchandak
Super User
Super User

@mshiva , Create a measure like

 

Amount EUR =

var _max - maxx(filter(FxRate, FxRate[Curr] = selectedvalues(Curr[Curr])

&& FxRate[date]= selectedvalues(Date[DAte]) ), FxRate[Rate])

return

sumx(Table, Table[Amount]*_max)

 

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

       If i keep Currency Code hardcoded its working . When i remove that it is not working . Throwing error like mutliple value expecting 
 
    SUMX(
        VALUES( 'Calendar'[Date]),
        VAR vExchangeRate =
            LOOKUPVALUE(
                'Dim FX'[drate],
                 'Dim FX'[dtdate - Copy]  ,SELECTEDVALUE('Calendar'[Date])
                 ,'Dim FX'[fr_scode],"EUR")

       

        RETURN
            1 * vExchangeRate
    )

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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