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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
seanpratt
Helper III
Helper III

DAX Formula Help

I'm not sure how to phrase this, but I'm simply looking to sum up the story points by each Work Item ID. When I aggregate all of our story points for a sprint in Power BI, it's saying ID 21822 is worth 15 points, and then 22216 is worth 15 points when really it should be 5 each.

I've got it in 3 rows here to allow for the tags to play a larger role in our reporting.

 

What's the formula I need here?

 

daxhelp.png

2 REPLIES 2
Anonymous
Not applicable

Hi @seanpratt ,
Based on your description, the data you are displaying is duplicated across columns, which results in automatic aggregation when displayed. If you want to display only the values of each item, unaggregate them in the visual object

vheqmsft_0-1721725730158.png

Or you can create a measure

Story Points_ = 
CALCULATE(
    AVERAGE('Table'[Story Points]),
    ALLEXCEPT(
        'Table',
        'Table'[Work Item ID]
    )
)

vheqmsft_1-1721725830819.png

Best regards,
Albert He

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

vicky_
Super User
Super User

You could try to aggregate by MIN or AVERGE instead of SUM. However, since it looks like most rows except the Tags are the same, I would try and fix the structure of your data - the first table would be something like the Work Item Table, which would have the Work Item Id, dates, and Story Points, etc without duplicates. And then you might have a Work Item Tag table (which just has a work Item ID and Tags), which would have a M:1 relationship with the Work Item Table. That way, you won't have to deal with the multiple story points per work item.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.