# Getting story points before a certain date

**URL:** <https://community.eazybi.com/t/getting-story-points-before-a-certain-date/4590>\
**Category:** Questions & Answers\
**Created:** [June 4, 2020, 8:17pm UTC](https://community.eazybi.com/t/getting-story-points-before-a-certain-date/4590 "2020-06-04T20:17:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![siasina](https://community.eazybi.com/letter_avatar_proxy/v4/letter/s/cab0a1/32.png) [@siasina](https://community.eazybi.com/u/siasina)\
**Post date:** [June 4, 2020, 8:17pm UTC](https://community.eazybi.com/t/getting-story-points-before-a-certain-date/4590/1 "2020-06-04T20:17:49Z")

</div>

Hi,

I have a report where I am using Issue dimension with ‘epic’ hierarchy. I am displaying issues with a certain fix version. Then I am using the measure to display story points created. However, I want to ‘lock’ the report to stop counting story points for tickets that were closed after a certain date, say May 29, 2020, even if the ticket has the same fix version.

How do I do that? I thought this may work but it gave me an error:

CASE WHEN  
[Issue].[Issue].CurrentDateMember \<= ‘2020-05-29’  
THEN  
[Measures].[Current Story Points Created]  
END

---

<div class="post-metadata">

**Author:** ![lauma.cirule](https://community.eazybi.com/user_avatar/community.eazybi.com/lauma.cirule/32/8830_2.png) [@lauma.cirule](https://community.eazybi.com/u/lauma.cirule)\
**Post date:** [June 16, 2020, 11:09am UTC](https://community.eazybi.com/t/getting-story-points-before-a-certain-date/4590/2 "2020-06-16T11:09:37Z")

</div>

Hi @siasina!

I imagine you could use the Story points resolved measure together with the Time dimension - this shows story points on the date when they were resolved. Then we can filter the Time dimension members to show only up until certain date by using the [PreviousPeriods function](https://docs.eazybi.com/eazybi/analyze-and-visualize/calculated-measures-and-members/mdx-function-reference/previousperiods)

```
Sum(
  PreviousPeriods([Time].[Day].DateMember("2020-05-29")),
  [Measures].[Story Points resolved]
)

```

Note that you can make this dynamic by suing only story points resolved until version release date:

```
Sum(
  PreviousPeriods([Time].[Day].DateMember(
    [Measures].[Version release date]
  )),
  [Measures].[Story Points resolved]
)

```

Lauma / [support@eazybi.com](mailto:support@eazybi.com)
