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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.