# Filter on Sprint To Show Specific Boards For Sprints Closed Within Previous Month

**URL:** <https://community.eazybi.com/t/filter-on-sprint-to-show-specific-boards-for-sprints-closed-within-previous-month/3160>\
**Category:** Questions & Answers\
**Created:** [November 11, 2019, 6:51pm UTC](https://community.eazybi.com/t/filter-on-sprint-to-show-specific-boards-for-sprints-closed-within-previous-month/3160 "2019-11-11T18:51:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cpuglisi](https://community.eazybi.com/letter_avatar_proxy/v4/letter/c/258eb7/32.png) [@cpuglisi](https://community.eazybi.com/u/cpuglisi)\
**Post date:** [November 11, 2019, 6:51pm UTC](https://community.eazybi.com/t/filter-on-sprint-to-show-specific-boards-for-sprints-closed-within-previous-month/3160/1 "2019-11-11T18:51:39Z")

</div>

Hi all!

I’m trying to create a table report that has a calculated measure on the Sprint dimension. It will show only specific boards for Sprints that were opened within the previous month.

This is the code I have so far (defined in a new calculated measure on the Sprint dimension) but I keep getting syntax errors:

Aggregate({  
[Sprint].[MCX Agile Team 1 Scrum Board],  
[Sprint].[MCX Agile Team 2 Scrum Board],  
[Sprint].[FMC Agile Team Scrum Board],  
[Sprint].[FMC Screeners Scrum Board]  
})  
CASE WHEN  
Aggregate({  
Tail(Order(  
Filter([Sprint].[Sprint].Members,  
[Measures].[Sprint Closed?] = ‘Yes’ AND  
NOT isEmpty([Measures].[Sprint End Date])),  
[Sprint].CurrentMember.get(‘End date’), BASC  
), 4)  
})  
END

---

<div class="post-metadata">

**Author:** ![zane.baranovska](https://community.eazybi.com/user_avatar/community.eazybi.com/zane.baranovska/32/7209_2.png) [@zane.baranovska](https://community.eazybi.com/u/zane.baranovska)\
**Post date:** [December 19, 2019, 9:47am UTC](https://community.eazybi.com/t/filter-on-sprint-to-show-specific-boards-for-sprints-closed-within-previous-month/3160/2 "2019-12-19T09:47:51Z")

</div>

Hi @cpuglisi,

When aggregating a group of members, first, you might want to decide which **level** members (in your case Boards or Sprints) you would like to group. And then write all filtering criteria from that level perspective. For example, to aggregate Sprints, start by filtering Sprint level members by certain rules:

- specific Board (sprint parent) name
- sprint is closed
- sprint end date is in the previous month

The calculation might look like this:

```
Aggregate(
  --filter sprints
  Filter([Sprint].[Sprint].Members,
  --from specified boards
  [Sprint].CurrentMember.Parent.Name MATCHES "MCX Agile Team 1 Scrum Board|MCX Agile Team 2 Scrum Board|FMC Agile Team Scrum Board|FMC Screeners Scrum Board" AND
  [Measures].[Sprint Closed?] = 'Yes' AND
  --sprint end date in previous month
  DateInPeriod([Measures].[Sprint end date],
    [Time].[Month].CurrentDateMember.PrevMember)
))

```

More details on how to aggregate members in dimension and regular expressions are here:

- [https://docs.eazybi.com/eazybijira/analyze-and-visualize/calculated-measures-and-members/calculated-members-in-other-dimensions](https://docs.eazybi.com/eazybijira/analyze-and-visualize/calculated-measures-and-members/calculated-members-in-other-dimensions)
- [https://docs.eazybi.com/eazybi/analyze-and-visualize/regular-expressions](https://docs.eazybi.com/eazybi/analyze-and-visualize/regular-expressions)

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

---

<div class="post-metadata">

**Author:** ![XavierH](https://community.eazybi.com/letter_avatar_proxy/v4/letter/x/ebca7d/32.png) [@XavierH](https://community.eazybi.com/u/XavierH)\
**Post date:** [May 24, 2022, 8:06am UTC](https://community.eazybi.com/t/filter-on-sprint-to-show-specific-boards-for-sprints-closed-within-previous-month/3160/3 "2022-05-24T08:06:09Z")

</div>

HI @zane.baranovska , i was trying your solution but i mayke some adjustement to fit my need.

I got several board that are all name with the format "Scrum " & Team\_name

I try this syntaxe but i got no result.

```auto
 [Sprint].CurrentMember.Parent.Name MATCHES "^Scrum*"

```

---

<div class="post-metadata">

**Author:** ![zane.baranovska](https://community.eazybi.com/user_avatar/community.eazybi.com/zane.baranovska/32/7209_2.png) [@zane.baranovska](https://community.eazybi.com/u/zane.baranovska)\
**Post date:** [May 24, 2022, 8:36am UTC](https://community.eazybi.com/t/filter-on-sprint-to-show-specific-boards-for-sprints-closed-within-previous-month/3160/4 "2022-05-24T08:36:09Z")

</div>

Hi @XavierH,

If you would like to group sprints with the name pattern starting with “Scrum” you might slightly adjust the expression.  
First, check the CurrnetMember name directly, not its Parent.  
When checking on name patterns, use the regular expression `.*` (see examples in [Regular expressions in calculated members](https://docs.eazybi.com/eazybi/analyze-and-visualize/regular-expressions)).

```auto
[Sprint].CurrentMember.Name MATCHES "^Scrum.*"

```

For more complex use cases to group sprints by name patterns, check out other community posts describing how to create a custom hierarchy in the Sprint dimension.

> [@Combining different teams sprints into one](https://community.eazybi.com/t/combining-different-teams-sprints-into-one/4120/3):
>
> With version 6.1 we added a new to create custom hierarchies in some dimensions, including Sprints. You would like to import custom properties for sprints to represent a potential grouping mechanism. For example, you can import a property cycle for Sprints with [additional data import](https://docs.eazybi.com/eazybijira/data-import/jira-issues-import/additional-data-import-into-jira-issues-cube). Then you can use this custom property Cycle to build a [new custom hierarchy](https://docs.eazybi.com/eazybi/analyze-and-visualize/create-reports#Createreports-AddcustomhierarchiestospecificJiraandConfluencedimensions) in Sprint dimension and group sprints by cycles dynamically. Import additional property to Sprint based on Sprint naming pattern XX Spr…

> [@Aggregate Sprint By Name](https://community.eazybi.com/t/aggregate-sprint-by-name/6591/2):
>
> Hi @Gisela_Nogueira, You can add custom hierarchy that would group sprints by matching string or numeric properties (sprints with the same property value are grouped) in Sprint dimension. First, you might want to import criteria for grouping sprints as a property using additional data import: [Additional data import into Jira Issues cube - eazyBI for Jira](https://docs.eazybi.com/eazybijira/data-import/jira-issues-import/additional-data-import-into-jira-issues-cube). For example, import planned start period as string, program increment, or some other attribute indicates which sprints should be grouped. …

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