Remove an issue from a Measure dimension

Paul payen June 22, 2016

Hello,

I use this code to get the original estimated workload in which time has been logged.

Then I get the sum of all on weekly basis. The problem I have is there are issues that are counted several times between 2 different weekdays. I guess it's because time has been logged into 1 issue several times in different weekdays. 

I want to exclude them and I don't know how. 

 

Calculated member 1
/*Return the original estimated based on the list of issues filtered */
Sum(
  Filter(
    /*All issues of the CurrentMember (e.g. Building) that started*/
    Descendants([Issue].CurrentMember, [Issue].[Issue]),
    [Measures].[Hours spent] > 0),
    /*We retrieve the workload planned for issues we started to work on*/
    ([Measures].[Original estimated hours],
    [Time].CurrentHierarchy.DefaultMember)
)
Calculated member 2
  Sum(
  PreviousPeriods([Time].CurrentHierarchy.DefaultMember),
([Measures].[member 1],[Issue Type].CurrentHierarchy.DefaultMember))

2 answers

0 votes
Daina Tupule eazyBI
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.
June 26, 2016

Hello, Paul

Your assumption is correct - Filter with Hours spent will retrieve you an issue for each time period when any hours spent are logged.


If you would like to filter all issues with any hours spent then you could use Hours spent in a tuple with Time current hierarchy default member. In addition, you need to define in which Time period you would like your issues to appear to and any property could do a job.


For example, you could use Issue property ‘Issues created’ to retrieve issues on Time period when they were created and then apply an additional filter with hours spent and default time member to limit to only those issues with logged hours.

 

Please try this code:

Sum(
  Filter(
    /*All issues of the CurrentMember (e.g. Building) that started*/
    Descendants([Issue].CurrentMember, [Issue].[Issue]),
    DateInPeriod([Issue].CurrentMember.Get('Created at'),-- all issues at time when they were created
      [Time].CurrentHierarchyMember)
    AND
    ([Measures].[Hours spent],
    [Time].CurrentHierarchy.DefaultMember) > 0), -- additional filter limits to only thoses issues with hours spent
    /*We retrieve the workload planned for issues we started to work on*/
    ([Measures].[Original estimated hours],
    [Time].CurrentHierarchy.DefaultMember)
)

 

 Daina / support@eazybi.com

0 votes
Paul payen June 25, 2016

Hello @Lauma, what do you think ?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events