# Calculate Committed Stories completed in a Sprint

**URL:** <https://community.eazybi.com/t/calculate-committed-stories-completed-in-a-sprint/1118>\
**Category:** Questions & Answers\
**Created:** [October 10, 2018, 12:55pm UTC](https://community.eazybi.com/t/calculate-committed-stories-completed-in-a-sprint/1118 "2018-10-10T12:55:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![briantaylor](https://community.eazybi.com/letter_avatar_proxy/v4/letter/b/ce7236/32.png) [@briantaylor](https://community.eazybi.com/u/briantaylor)\
**Post date:** [October 10, 2018, 12:55pm UTC](https://community.eazybi.com/t/calculate-committed-stories-completed-in-a-sprint/1118/1 "2018-10-10T12:55:39Z")

</div>

I am trying to see of there is a way to calculate how many of the committed stories were completed in a sprint

I tried the below code but getting an error

(  
[Measures].[Sprint issues at closing],  
[Measures].[Sprint issues committed]  
)

---

<div class="post-metadata">

**Author:** ![roberts.cacus](https://community.eazybi.com/user_avatar/community.eazybi.com/roberts.cacus/32/637_2.png) [@roberts.cacus](https://community.eazybi.com/u/roberts.cacus)\
**Post date:** [October 16, 2018, 11:15am UTC](https://community.eazybi.com/t/calculate-committed-stories-completed-in-a-sprint/1118/2 "2018-10-16T11:15:28Z")

</div>

Hi Brian,

You could try to create the calculated measure with the code below:  
​  
NonZero(Count(  
Filter(  
Descendants([Issue].CurrentMember, [Issue].[Issue]),  
[Measures].[Sprint issues committed] \> 0  
AND  
[Measures].[Sprint issues at closing] \> 0  
)  
))

The formula returns the count of all issues that have been committed to and closed in a sprint.  
But please be advised that the formula goes through all of the issues, and the set can get quite large.

Best,  
Robert / support@eazyBI.
