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
Anonymous
Not applicable

DAX Data Modelling

I have a list of peoples scores and the teams they reside in. What I would like to model in Power BI is how the Teams total scores change if I were to move a person from one team to another. 

 

For Example, this is how it would work in Excel:

Dax_Data_Model_Question.png

 

With the formula in the New Total Column being: 

 

=IF ($I$4=K2,F2-VLOOKUP($I$3,$A$1:$C$15,3,FALSE),IF($I$5=K2,F2+VLOOKUP($I$3,$A$1:$C$15,3,FALSE),F2))

To summarise, It would take the score of the person I've selected away from their current teams total and then add their score to their new teams total.

 

Is there anyway I can replicate this in Power BI using DAX? I am getting stuck with how the Interactions work between the slicer (selecting the person / teams) and the tables. 

 

thanks!

2 REPLIES 2
Anonymous
Not applicable

Try using What - If parameters in powerBI.

You can create 2 parameters, one for player and another for 'into team'.

Now using DAX, create a new column called 'New/Current Team' (if statement), something like

if(Player (from underlying table) = Player (from parameter) and team (from table) != team from parameter, team(from parameter), team(from table))

Basically, for the player that is selected in parameter, we check if the team selected in parameter matches with player's actual team which is data given in underlying table. If not, we update in new column.

 

Now, rest of you calculations will have to be made using new team column instead of original one.

 

Anonymous
Not applicable

What-if parameters only lets you select numerical data types, is there a way to change it to text?

 

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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!

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