Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 36 | |
| 33 | |
| 29 | |
| 26 |
| User | Count |
|---|---|
| 135 | |
| 103 | |
| 65 | |
| 61 | |
| 55 |