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
hgnisnattart
Frequent Visitor

Dynamic Scenario Calculation Based on Dropdowns

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"))

 

 

Capture.PNG

 

(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!

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@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])

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

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@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])

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

@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!

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