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
spenceratchison
Regular Visitor

Reference Measure Calculation based on Dynamic Selection

Hello,

 

I am attempting to reference a calculation from a measure within another measure based on a selected value. For example, my goal is to create a measure that subtracts the "Defensive Elo" of one team from the "Offensive Elo" of another team based on selected values. To clarify, if BUF is playing PHI this week in football, I want to be able to select PHI as the home team and BUF as the away team using slicers. Then I would like the measure to return the difference between PHI "Offensive Elo" value and BUF
"Defensive Elo" Value. This would in turn be 1,864 - 1,670.(See Image Below for Reference) I just want this to be a dynamic calculation so that whoever is selected as the Home and Away team it will find the difference between those two values. I hope that makes sense and I appreciate all the suggestions.

spenceratchison_1-1665855260175.png

 

 

 

1 ACCEPTED SOLUTION
deevaker
Resolver I
Resolver I

I think you can create separate tables for home team and away team

and we write measure as

Var a = Calculate(offensive Elo, team=selectedvalue(Hometeam[team]))

Var b = Calculate(Defensive Elo, team=selectedvalue(Awayteam[team]))

Return
a-b


View solution in original post

1 REPLY 1
deevaker
Resolver I
Resolver I

I think you can create separate tables for home team and away team

and we write measure as

Var a = Calculate(offensive Elo, team=selectedvalue(Hometeam[team]))

Var b = Calculate(Defensive Elo, team=selectedvalue(Awayteam[team]))

Return
a-b


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
Top Kudoed Authors