Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

View all the Fabric Data Days sessions on demand. View schedule

Reply
braja1718
New Member

Create a Max measure that doesn't change

I'm trying to create a report for my fantasy baseball league. I have a table containing players, whose team they are on or if they are free agents, and then their projected points for the year. I want to create a measure that looks for the Maximum "projected points" out of all the players who are free agents. I then want to create a new column that subtracts this measure from the "projected points" column so I can see how much each player perform above or below the level of the best available free agent.

 

I've tried:

Measure = Calculate(MAX(Table[projected points]), Table[Team]="free agent")

which works to find the points for the highest free agent.
 
However, when I try to use that measure, like:
Column = Table[projected points] - Measure
It seems to try to calculate the Measure for each individual player and use that.
 
So, for players who aren't free agents, the Measure calculates as 0. For players who are free agents, it calculates as that individual player's points value. So the subtraction results in no change for players who aren't free agents, and 0 for players who are. I am struggling to figure out how to create a measure that will stay constant
3 REPLIES 3
amitchandak
Super User
Super User

@braja1718 , either create the first one as a column too or create the second one as a measure.

The measure can take slicer value and dynamic , columns are not

 

Column 1 = Calculate(MAX(Table[projected points]), Table[Team]="free agent")

Column 2= Table[projected points] - Measure

 

or

 

Measure = Calculate(MAX(Table[projected points]), Table[Team]="free agent")

 

Measure 2= Sumx(Table, Table[projected points] - [Measure])

 

or

 

Measure 2= Sumx(Table, calculate(sum(Table[projected points]) - [Measure]) )

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

I was able to figure out a quick work around by creating a column that returned the "projected points" for players whose teams value was Free Agents, and would return 0 for anyone else. Then created another column the returned the Max of the previous column, thus only including Free Agents. Then I can do my subtraction.

 

If you can think of a more concise way to get this done, I'd love to hear it! But I have something that works for now.

Thank you for your reply! Unfortunately, trying those didn't seem to change the issue where the value is calculating the Max for each individual player. Even when I add it as a column. I want it to take the Max of all players who are Free Agents and applying that to all players in the list. 

 

If I'm willing to make a dedicated column to hold that value, I think it would be best to make that in the Power Query Editor rather than with DAX expressions. However, I'm still struggling with the syntax I'd use to get the Max of just the free agents. I think I could make a separate table for just the free agents and work with that, but I'd rather not have to do that if possible to figure out how to make it work inside the function.

 

Just to clarify, here's the idea:

Player NameTeamProjected PointsMax Free AgentDifference
Player 1Team 2350200150
Player 2Team 4320200120
Player 3Team 125020050
Player 4Free Agent2002000
Player 5Team 3190200-10
Player 6Free Agent150200-50
Player 7Free Agent150200-50

 

See that Player 4 is the Free Agent with the highest Project Points total, at 200. Then I put that value into a column and subtract it from everyone.

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