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...
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.