EazyBI - Aggregate/Except with multiple value fields - Calculated Member

Hello,

I am trying to create two calculated members (planned and unplanned) based on a field that can have multiple values.  "Planned" is everything with a "PlannedForVersion" of 'Version 5.2' and "unplanned" is everything else. I am using "Aggregate" and "Aggregate except" to calculate the members.  The problem I am running into is that one issue can be planned for multiple versions. Those items are showing up as both a planned and unplanned items. For example, if an item is planned for both Version 5.1 and Version 5.2 it will show up as both planned and unplanned.  I have included the formulas I am using below.  Can you provide assistance as to how I can filter/remove any issue that includes 'Version 5.2' as a value in the "PlannedForVersion" field from "Unplanned"?

Thanks in advance!

Len

 

Planned:

Aggregate({

[PlannedForVersion].[PlannedForVersion].[Version 5.2]
}
)
)

 

Unplanned:

Aggregate(
Except(
[PlannedForVersion].[PlannedForVersion].Members,
{ [PlannedForVersion].[PlannedForVersion].[Version 5.2]
}
)
)

1 answer

Hi Len


For calculated member: Unplanned you could use this code below to aggregate all members that are not blank and that has not Version 5.2

Aggregate(
  Except(
    [PlannedForVersion].[PlannedForVersion].Members,
    { 
      [PlannedForVersion].[PlannedForVersion].[Version 5.2],
      [PlannedForVersion].[PlannedForVersion].[(none)]
      }
  )
)

 
Then you could create a new calculated measure in "Measure" dimension for counting issues that have PlannedVersion, except those that are in Version 5.2 (see code below)

NonZero(
Count(
  Filter(
    Descendants([Issue].CurrentMember, [Issue].[Issue]),
    DateInPeriod([Issue].CurrentMember.get('Created at'),
    [Time].CurrentHierarchyMember)
    AND 
    [Measures].[Issues created]>0
    AND
    ([PlannedForVersion].[Unplanned],
    [Measures].[Issues created])>0
    AND
    NOT ([PlannedForVersion].[Planned],
    [Measures].[Issues created])>0
    
))
)


And then you could filter your report by this new measure when Measure used in columns.

 

Please contact support@eazybi.com if you have further questions regarding this!

 

Kind regards,

Martins Vanags / support@eazybi.com

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 May 30, 2018 in Marketplace Apps

Three tips for boosting your board's efficiency with Story Maps

Trello is one of the most effective tools for driving your sprints. It's customizable for every Agile team and product owners and Scrum masters (SM) love it. However, Agile teams often struggle with:...

851 views 2 9
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