# New calculated member for tickets opened for more than three months

**URL:** <https://community.eazybi.com/t/new-calculated-member-for-tickets-opened-for-more-than-three-months/11897>\
**Category:** Questions & Answers\
**Tags:** jira, calculatedmembers, mdx\
**Created:** [February 27, 2023, 7:53am UTC](https://community.eazybi.com/t/new-calculated-member-for-tickets-opened-for-more-than-three-months/11897 "2023-02-27T07:53:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![martovsky](https://community.eazybi.com/letter_avatar_proxy/v4/letter/m/0ea827/32.png) [@martovsky](https://community.eazybi.com/u/martovsky)\
**Post date:** [February 27, 2023, 7:53am UTC](https://community.eazybi.com/t/new-calculated-member-for-tickets-opened-for-more-than-three-months/11897/1 "2023-02-27T07:53:15Z")

</div>

Hello, I would like to create a new calculated member for all tickets that has been opened for more then three months and still not solved. I am not able to create this one so I am asking for your help here.

Thank you in advance,  
Martin.

---

<div class="post-metadata">

**Author:** ![gerda.grantina](https://community.eazybi.com/user_avatar/community.eazybi.com/gerda.grantina/32/1994_2.png) [@gerda.grantina](https://community.eazybi.com/u/gerda.grantina)\
**Post date:** [March 2, 2023, 12:31pm UTC](https://community.eazybi.com/t/new-calculated-member-for-tickets-opened-for-more-than-three-months/11897/2 "2023-03-02T12:31:05Z")

</div>

Hi @martovsky ,  
Welcome to eazyBI Community! 👋

You can create [an aggregate member](https://docs.eazybi.com/eazybi/analyze-and-visualize/calculated-measures-and-members/calculated-members-in-time-dimension) in the **Time** dimension using this formula:

```auto
Aggregate(
  [Time].[Day].DateMembersBetween('3 months ago', 'today')
)

```

And then, create a [new calculated measure](https://docs.eazybi.com/eazybi/analyze-and-visualize/calculated-measures-and-members/calculated-measures) in the **Measure** dimension to subtract from all unresolved issues those issues created in the last three months. In this way, you will get a number of unresolved issues that have been created more than three months ago and still not been solved:

```auto
NonZero(
  ([Measures].[Issues created],
  [Resolution].[(unresolved)],
  [Time].CurrentHierarchy.DefaultMember)
  -
  ([Measures].[Issues created],
  [Resolution].[(unresolved)],
  [Time].[Last 3 months])
)

```

Best,  
Gerda // [support@eazyBI.com](mailto:support@eazyBI.com)

---

<div class="post-metadata">

**Author:** ![martovsky](https://community.eazybi.com/letter_avatar_proxy/v4/letter/m/0ea827/32.png) [@martovsky](https://community.eazybi.com/u/martovsky)\
**Post date:** [March 10, 2023, 2:06pm UTC](https://community.eazybi.com/t/new-calculated-member-for-tickets-opened-for-more-than-three-months/11897/3 "2023-03-10T14:06:16Z")

</div>

Hello,  
thank you for your answer! 🙂  
Anyways this formula shows me tickets created in less than three months :/.

I think maybe the “minus” operator does not work right, I have not any other ideas what is wrong.

Any other idea?

Thank you so much  
Martin

---

<div class="post-metadata">

**Author:** ![gerda.grantina](https://community.eazybi.com/user_avatar/community.eazybi.com/gerda.grantina/32/1994_2.png) [@gerda.grantina](https://community.eazybi.com/u/gerda.grantina)\
**Post date:** [March 14, 2023, 7:07am UTC](https://community.eazybi.com/t/new-calculated-member-for-tickets-opened-for-more-than-three-months/11897/4 "2023-03-14T07:07:56Z")

</div>

Hi @martovsky ,  
Please check that created aggregate member in the Time dimension is called “Last 3 months” as that is the member that is being referenced in the next formula.

best,  
Gerda

---

<div class="post-metadata">

**Author:** ![martovsky](https://community.eazybi.com/letter_avatar_proxy/v4/letter/m/0ea827/32.png) [@martovsky](https://community.eazybi.com/u/martovsky)\
**Post date:** [March 20, 2023, 10:48am UTC](https://community.eazybi.com/t/new-calculated-member-for-tickets-opened-for-more-than-three-months/11897/5 "2023-03-20T10:48:20Z")

</div>

Thank you so much, exactly this was the problem, now it’s working great.

I tried to extend this formula, but I wasn’t successful. Is it possible to help me a bit more please?  
I need to constrain the time from both sides. I mean I would like to report the issues which are open for more than three months but less than let’s say six months.

Thank you again in advance  
Martin

---

<div class="post-metadata">

**Author:** ![gerda.grantina](https://community.eazybi.com/user_avatar/community.eazybi.com/gerda.grantina/32/1994_2.png) [@gerda.grantina](https://community.eazybi.com/u/gerda.grantina)\
**Post date:** [March 21, 2023, 12:24pm UTC](https://community.eazybi.com/t/new-calculated-member-for-tickets-opened-for-more-than-three-months/11897/6 "2023-03-21T12:24:12Z")

</div>

Hi @martovsky ,  
In that case, you can adjust the first part of the formula to calculate issues created (and still unresolved) in the last six months. Create an aggregate member “Last 6 months” in the Time dimension (similar to the last 3 months) and adjust the formula:

```auto
NonZero(
  ([Measures].[Issues created],
  [Resolution].[(unresolved)],
  [Time].[Last 6 months])
  -
  ([Measures].[Issues created],
  [Resolution].[(unresolved)],
  [Time].[Last 3 months])
)

```

best,  
Gerda
