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

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

358 views 0 6
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