Creating calculated members on IssueType filtering on project?

I want to report  on how my team spends it's time, and segregate this by 'Project Work' vs 'Non-Project' vs 'Support'

So feel I need to add Calculated Members on IssueType. 


'Non-Productive' =

(any issue of any type  within Projects named 'Internal 1', 'Internal 2')


(issue types 'Bucket Task' or 'Bug Fix' )


All 'Productive' =

Issue not  within a project named 'Internal 1' or 'Internal 2'


issue type not 'Bug Fix' OR 'Support' OR 'Bucket Task' 


Support =

Issue not  within a project named 'Internal 1' or 'Internal 2'


issue type = 'Support' 

Then I can build a pie chart using IssueType and Measure (hours spent) as columns, Logged by as a Page and Time as a row.


The calculated member for 'Support' is trivial.  However I'm struggling to figure out how to build the other two.

I'd really appreciate some help on this if anyone able to point me in the right direction - having spent about three hours on this trying various combinations of filter/aggregate etc.  Please go easy on me, I'm new to this and have never used a BI reporting tool before - so this is a steep learning curve.


Please help!

2 answers

1 accepted

Hi Graeme,


In this case, we recommend using tuples to create new calculated measures for your needed selections.

Please find example of code that you could try for creating new calculated measure: "Non-Productive hours"


    Descendants([Issue].CurrentHierarchyMember, [Issue].[Issue]),
    ([Issue].CurrentHierarchyMember.get('Created at'), 
    [Measures].[Issues created]>0
      [Issue].CurrentMember.Parent.Name MATCHES '.*Internal 1.*'
       [Issue].CurrentMember.Parent.Name MATCHES '.*Internal 2*'
        [Measures].[Issues created],
        [Issue type].[Bucket Task])>0
        [Measures].[Issues created],
        [Issue type].[Bug Fix])>0
),[Measures].[Hours spent]


In a quite similar way, you could create both other calculated measures using NOT MATCHES function and IsEmpty (in tuple cases) for filtering selection that not matching some criteria.


Then you could use "Measures" dimension with 3 selected measures in columns, "Logged" dimension by in pages, and Time dimension in rows.

At the end you could get report like attached (with possibility to drill in Time dimension and select user):

 pie chart example.jpg

Please contact if you have further questions regarding this!


Kind regards,

Martins Vanags

Thank you so much Martins.  I really appreciate you input and will give this a try.


Suggest an answer

Log in or Join to answer
Community showcase
Maarten Cautreels
Posted Thursday in Off-topic

Friday Fun: What's your favourite beer/drink

As a Belgian, beer-lover and home brewer, beer is one of my great passions. I love the fact that with just a few ingredients (usually just water, hop and malt) you can create so many different tastes...

288 views 38 9
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot