Keep getting error messages when I combine Calculated Members with Filters

So, I have been trying to combine Calculated members with Filters in EazyBi but I keep getting error messages whenever I use the MATCHES filter.

 

The following is what I am trying to achieve;


Filter (
[Project.Category].[All Projects by category].Children,
[Project.Category].CurrentMember.Name MATCHES '*.infra.*'

but I keep getting a bunch of errors;

Formula is not valid: 
Member expression 'Filter([Project.Category].[All Projects by category].Children, ([Project.Category].CurrentMember.Name MATCHES "*.category.*"))' must not be a set

OR when I use .members in place of .children, I get;

Formula is not valid: 
More than one function matches signature '<Member>.Members'; they are: <Hierarchy>.Members, <Level>.Members

I'm trying to filter my project categories, so that, it returns results that match anything containing 'infra'.

Please, can someone kindly let me know what I'm missing...

1 answer

1 accepted

This widget could not be displayed.

Hi,

 

In this case, try the following code for your calculated member

 

Aggregate(
Filter(
[Project.Category].[Category].Members,
[Project.Category].CurrentMember.Name MATCHES '.*infra.*'
)
)

 

It will aggregate a set of categories that have "infra" in their name into a new calculated member.

 

Note it must be saved in the correct hierarchy.

 

definition of project calculated member .png

 

Please reach out to support@eazybi.com if you have further questions about this!

 

Kind regards,

Martins / eazyBI support Team

Thanks, I tried the suggested code and it gave the result that I was looking for.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

485 views 3 18
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you