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
cdunworth
New Member

subtract values across a row when there's multiple items in first column

I have a tablethat looks like below: 

 

Capture.PNG

 

I need to sum the Total Starting Spread column for each unique Recrutier and subtract that value from the Avg Spread Column. Below is the DAX i'm currently using but I'm not getting the correct answer. What do I need to do from there to get this figured out? 

 

Spread)Diff = AVERAGE('Starting Spread Goals'[CandidatesInConsideration.Total Starting Spread])-'Starting Spread Goals'[Avg Spread]

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @cdunworth,

 

You can try to use below formula to get the diff of grouping average and current 'avg spread'.

 

Calculate column:

Spread Diff =
AVERAGEX (
    FILTER (
        ALL ( 'Starting Spread Goals' ),
        [Recrutier] = EARLIER ( 'Starting Spread Goals'[Recrutier] )
    ),
    [CandidatesInConsideration.Total Starting Spread]
)
    - 'Starting Spread Goals'[Avg Spread]

 

Regards,

Xiaoxin Sheng

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @cdunworth,

 

You can try to use below formula to get the diff of grouping average and current 'avg spread'.

 

Calculate column:

Spread Diff =
AVERAGEX (
    FILTER (
        ALL ( 'Starting Spread Goals' ),
        [Recrutier] = EARLIER ( 'Starting Spread Goals'[Recrutier] )
    ),
    [CandidatesInConsideration.Total Starting Spread]
)
    - 'Starting Spread Goals'[Avg Spread]

 

Regards,

Xiaoxin Sheng

Ashish_Mathur
Super User
Super User

Hi,

 

Drag Recruiter to the visual and write this calculated field formula i.e. measure

 

=SUM('Starting Spread Goals'[CandidatesInConsideration.Total Starting Spread])-MIN('Starting Spread Goals'[Avg Spread])

Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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