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

what am I doing wrong? Calculate(sum) DAX

I want to calculate the sum of two columns were the state of 'inprogess' is subtracted from 'done'

singleton2787_0-1666119185148.png

 

1 ACCEPTED SOLUTION
PabloDeheza
Solution Sage
Solution Sage

Hi @Anonymous !
Your calculation should be like this:

Story Points Start =
CALCULATE(
    SUM( Burndown[StoryPoint] ),
    Burndown[State] = "InProgress"
)
    - CALCULATE(
        SUM( Burndown[StoryPoint] ),
        Burndown[State] = "Done"
    )

Let me know if that helps!

View solution in original post

3 REPLIES 3
deevaker
Resolver I
Resolver I

Hi @Anonymous,

in the filter context, you can't get "In Progress" and "Done" status at the same time. You should calculate both separately and then subtract 

Story Points Start =
Var a = CALCULATE(SUM( Burndown[StoryPoint] ),Burndown[State] = "InProgress")
Var b = CALCULATE(SUM( Burndown[StoryPoint] ),Burndown[State] = "Done")

return
a-b

Thanks,

Deevaker Goel

+91-9711975011
deevaker@hotmail.com
https://www.linkedin.com/in/deevakerg/






PabloDeheza
Solution Sage
Solution Sage

Hi @Anonymous !
Your calculation should be like this:

Story Points Start =
CALCULATE(
    SUM( Burndown[StoryPoint] ),
    Burndown[State] = "InProgress"
)
    - CALCULATE(
        SUM( Burndown[StoryPoint] ),
        Burndown[State] = "Done"
    )

Let me know if that helps!

Anonymous
Not applicable

Done shows as a negative value.. but I think we are on the right track! Maybe I'll separate the math

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