SSAS MDX named set

Nagrajuna Bandi 1 Reputation point
2020-08-20T11:34:07.953+00:00

I am trying to create a common named set with fixed members so it can be used in multiple calculated members. But for some reason, it's failing. I am new to MDX scripting. Let me know if there is an issue here.

Aggregate({[TT Collection].[TT Type].&[A]
,[TT Collection].[TT Type].&[O]
,[TT Collection].[TT Type].&[I]
,[TT Collection].[TT Type].&[J]})

SQL Server Analysis Services
SQL Server Analysis Services
A Microsoft online analytical data engine used in decision support and business analytics, providing the analytical data for business reports and client applications such as Power BI, Excel, Reporting Services reports, and other data visualization tools.
1,256 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Alexei Stoyanovsky 3,416 Reputation points
    2020-08-20T15:58:26.387+00:00

    The Aggregate function doesn't return a set. The set is what you've provided as the single argument to the function's call, specifically { [TT Collection].[TT Type].&[A], [TT Collection].[TT Type].&[O], [TT Collection].[TT Type].&[I], [TT Collection].[TT Type].&[J] }

    1 person found this answer helpful.
    0 comments No comments

  2. Lukas Yu -MSFT 5,816 Reputation points
    2020-08-21T02:28:03.203+00:00

    Hi,
    Did you have specific needs with aggregate function ?
    If you only need a Named Set with only 4 members, you need only in the set expression give the four:
    19313-3.jpg

    0 comments No comments