Creating calculated members on IssueType filtering on project?

graemejohnson June 29, 2016

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')

OR

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

 

All 'Productive' =

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

AND

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

 

Support =

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

AND

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

0 votes
Answer accepted
Sir Mārtiņš Vanags
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 6, 2016

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"

 

Sum(
  Filter(
    Descendants([Issue].CurrentHierarchyMember, [Issue].[Issue]),
    DateInPeriod
    ([Issue].CurrentHierarchyMember.get('Created at'), 
    [Time].CurrentHierarchyMember) 
    AND
    [Measures].[Issues created]>0
    AND
    (
      (
      [Issue].CurrentMember.Parent.Name MATCHES '.*Internal 1.*'
        OR 
       [Issue].CurrentMember.Parent.Name MATCHES '.*Internal 2*'
      )
      OR
      (
        ([Issue].CurrentMember,
        [Measures].[Issues created],
        [Issue type].[Bucket Task])>0
        OR
        ([Issue].CurrentMember,
        [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 support@eazybi.com if you have further questions regarding this!

 

Kind regards,

Martins Vanags

0 votes
graemejohnson July 6, 2016

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

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events