Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi, I'm trying to create a measure that uses the appropriate rate based on the currency scenario selected. I have the following screenshot example with 2 different entities: Currency and Plan/Actuals. All columns for each entity are shown below.
I've tried implementing a calculated column to apply the correct rate to the Plan/Actuals table using LookUpValue, but it only works when the currency scenario is hard coded:
Ex. Local Amt Rate = LOOKUPVALUE('Currency'[Rate], 'Currency'[Currency], 'Plan/Actuals'[Currency], 'Currency'[Period], 'Currency'[Period], 'Currency'[Currency Scenario], "End of 2019"))
(In case extra context is needed: If 'End of 2019' and 'Actuals 2019' are selected, it means I want the 2019 Actuals according to the exchange rates related to the end of 2019. So the calculation I'm looking for is (5000*0.77) + (4500*0.78))
Thank you!
Solved! Go to Solution.
@hgnisnattart , try a new measure
sumx(Summarize(PlanActual, PlanActual[Sceniro], PlanActual[Currency], PlanActual[Period] , "_1" , calculate(max(Currency[Rate]),filter(Currency, Currency[Currency]=max(PlanActual[Currency]) && PlanActual[Period] = Currency[Period])) *sum(PlanActual[local Amount])),[_1])
@hgnisnattart , try a new measure
sumx(Summarize(PlanActual, PlanActual[Sceniro], PlanActual[Currency], PlanActual[Period] , "_1" , calculate(max(Currency[Rate]),filter(Currency, Currency[Currency]=max(PlanActual[Currency]) && PlanActual[Period] = Currency[Period])) *sum(PlanActual[local Amount])),[_1])
@amitchandak , thanks so much! This is working great :). I'm definitely going to have to spend some time breaking down the calculation to understand what's going on, but it works perfectly. Thanks again!
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.