[Measures] Create

In eazybi for jira, we want to create one [measures] that gets the sum of ‘Defect’ type and ‘Test’ type.
However, I would like the ‘Defect’ type to only contain values ​​where the value of the ‘Requester’ field is ‘SW’.
We do not include the ‘Test’ type because it does not have a ‘Requester’ field.

I would like to know a calculation formula that does not affect speed.

ㅡㅡㅡㅡㅡㅡㅡ

  1. Create [measures] to represent SW_defect below,
    [Measures].[SW_defect]
    Sum(
    {
    [Issue Type].[Defect]
    },
    (
    [Requester].[SW]
    )
    )

  2. I tried calling it from other measures. Is this correct?
    Sum(
    {
    [Project].[Etch]
    },
    (
    [Measures].[SW_defect],
    [Issue Type].[Test]
    )
    )

ㅡㅡㅡㅡㅡㅡㅡㅡㅡ
Or, it is configured this way, but it does not work properly…

NonZero(
CASE WHEN
– no selection on Issue dimension
[Issue].CurrentHierarchyMember is [Issue].CurrentHierarchy.DefaultMember
THEN
– iterate through pre-filtered projects list only
Aggregate(
Filter(
– set of issues from relevant projects
Generate(
– pre-filtering selected projects
Filter(
– set of selected projects
DescendantsSet(
[Project].CurrentMember,
[Project].[All ]),
– condition for project relevance
[Measures].[Issues created]>0),
– sets of issues from pre-filtered projects
DescendantsSet(
[Issue].[Project].GetMemberByKey(
[Project].CurrentMember.Key),
[Issue].[Issue])),
– conditions for issues from relevant projects
([Measures].[Issue type] = “Defect”
AND
[Measures].[Requester] = “SW”
)
OR
[Measures].[Issue type] = “Test”
AND
– issue was created in selected period
DateInPeriod(
[Issue].CurrentMember.Get(‘Created at’),
[Time].CurrentHierarchyMember)
),
– the actual measure
[Measures].[Issues created]
)
ELSE
– iterate according to Issue dimension selection - the original expression
Aggregate(
Filter(
Descendants([Issue].CurrentHierarchyMember, [Issue].[Issue]),
([Measures].[Issue type] = “Defect”
AND
[Measures].[Requester] = “SW”
)
OR
[Measures].[Issue type] = “Test”
AND
– issue was created in selected period
DateInPeriod(
[Issue].CurrentMember.Get(‘Created at’),
[Time].CurrentHierarchyMember)
), [Measures].[Issues created]
)
END
)

DataCenter version 7.0.1

Hi sso,

Try using the following formula, where two tuples are added together:

([Measures].[Issues created],
[Issue Type].[Defect],
[Requester].[SW])
+
([Measures].[Issues created],
[Issue Type].[Test])

I hope this helps!

Best,
Ilze

1 Like

Thank you.
I can get the sum of the two.
However, when I put a limit on the project, I get the following error.

※ I selected 7 projects in Pages.
※ I selected Time - weeks (50 weeks ago and today) in Row.
※ I selected measures - 7 projectes name
: (([Project].[TP],
[Measures].[Issues created],
[Issue Type].[Defect],
[Requester].[SW])
+
([Project].[TP],
[Measures].[Issues created],
[Issue Type].[Test])
)

[Error Message]
Query execution timeout of 60 seconds reached.
Please try to make query simpler.

→Is this an error caused by overlapping projects? How can I configure the page function to select all projects or only specific projects?

Hi sso,

You can select “Project” members on the pages while keeping the initial formulas (page filters will filter selected projects on top of those formulas).
However, adding the “Project” dimension directly in the formula will hardcode it to a single project dimension member (such measure will ignore the Project page filter).
You can also take a look at our documentation on tuples for more details: Tuple

To optimize the report, I recommend contacting support@eazybi.com directly with a detailed description of the issue, along with a screenshot and the report definition.

Kindly,
Ilze