English 中文(简体)
根据另一个《原则和规则》填写计量吸入器名称
原标题:Filtering an MDX Set Based on Another Set s Name
  • 时间:2012-04-26 03:41:02
  •  标签:
  • ssas
  • mdx

我对MDX来说仍然很新,因此,我不敢肯定,如果我要求做些什么,或者说不易做,但这里对我试图为我的MDX询问做些什么的描述含糊不清。 我有两套,不是与同一等级或表象直接相关的,尽管可能有“家庭”一词,但我不知道这将做我想要做的事情。

[Company].[Parent Company].[Parent Company] retrieves a set of all the members of companies that are parents of a company in the second set.

[Company].[Company]. [Company]>检索了包括父母在内的公司所有成员。

I m trying to filter out the [C].[C].[C] set to NOT include any instances of a [Parent Company] in a MEMBER for my MDX query. I tried some weird stuff with Filter() but kept messing up sets/tuples or getting the wrong kind of data.
There isn t any grandparent/multi-generational trickery to these sets, there s only two levels to worry about (companies and their potential parents, there may not be any). If the cube was formatted better, it would had been nice if they were in a hierarchy, but that s not the case here.

例产出:

  • Members of [Company].[Parent Company].[ParentCompany] = {A, C, E}
  • Members of [Company].[Company].[Company] = {A, B, C, D, E, F, G}

Then I want to get a set that will return the following: {B, D, F, G} and that s it.

感谢任何帮助!

最佳回答

如果没有使用成员,你可以这样做。 姓名:

Exclude([Company].[Company].[Company].Members, Extract([Company].[Company].[Company].Members * [Company].[Parent Company].[Parent Company].Members, [Company].[Company]))

Exclude([Company].[Company].[Company].Members, Exists([Company].[Company].[Company].Members, [Company].[Parent Company].[Parent Company].Members))
问题回答

暂无回答




相关问题
In SSAS, can parent-child DATAMEMBER name be customised

In a parent-child dimension in SSAS, the datamember is automatically named the same as the parent. E.g. Division X Risk Register Division X Risk Register Department A Risk Register Department B ...

Adding a Total column to MDX

I have the following query that gives me an extract (I am putting this into a CSV from my cube). I want to show the Total of all NRx in a column as the first column NRx and the rest of the NRx ...

using colors in calculated member

Im using this query in MDX for a calculate measure topcount(nonempty([StatusPlanes].[Status].Status.members,[Measures].[Planes]),1)(0).member_caption this will bring me this result Dimension1 ...

Using colors with MDX calculated measure

I m using this query in MDX for a calculated measure topcount(nonempty([StatusPlanes].[Status].Status.members,[Measures].[Planes]),1)(0).member_caption This will bring me this result Dimension1 ...

Calculated Member for Cumulative Sum

First some background: I have the typical Date dimension (similar to the one in the Adventure Works cube) and an Account dimension. In my fact table I have daily transaction amounts for the accounts. ...

What is MDX and what is its use in SAP BPC

I would like to know more about "MDX" (Multidimensional Expressions). What is it? What is it used for? Why would you use it? Is it better than SQL? What is its use in SAP BPS (I haven t seen BPC, ...

热门标签