EazyBI - Trying to get a sum of a custom field for all linked issues

Hello - I am trying to get a sum of a custom field for all linked issues.  I have a custom field called "Story Points" that has been imported as a measure.  I tried the follwing code from another post, but no luck.  I am looking to sum up all of the story points that belong to a particular epic.  I get a "Formula is not valid" error:

Formula is not valid: 
Syntax error at line 4, column 5, token 'AND'

Original post:

https://community.atlassian.com/t5/Product-Apps-questions/EazyBI-calculate-sum-of-custom-field-values-for-issues-in-Epic/qaq-p/91653

Sample Code:

Sum(
  Filter(
    Descendants([Issue].CurrentMember, [Issue].[Issue]),
    AND
    [Measures].[Issues created] > 0
)
,[Measures].[Story Points]
)

 

Any thoughts on this?  Thanks in advance.

 

1 answer

Hello,

The provided formula has the wrong syntax. To make it work you may remove operand AND and use a formula like this:

Sum(
  Filter(
    Descendants([Issue].CurrentMember, [Issue].[Issue]),
    [Measures].[Issues created] > 0),
  [Measures].[Story Points]
)


Other suggestion is to validate the correct name of the measure "Story Points". When you define a formula for a calculated measure, on the right side is a list of all available measures (root members), and you may pick the measure from a list to use a precise name.

Regards,
Zane / support@eazybi.com

Thank you, this worked great!

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jul 10, 2018 in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

154 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you