我尝试创建一个计算成员来显示每个产品的利润,但是我在“选择”上收到了错误。任何人都可以帮助我,因为我是新手吗?
CALCULATE;
CREATE MEMBER CURRENTCUBE.[Measures].Profit_Per_Produkt
AS Select [Measures].[Vinst] on columns,
[Dim Produkt].[Artikelnr].[Artikelnr] on rows
from [Elektronikkedja],
FORMAT_STRING = "Percent",
VISIBLE = 1 , ASSOCIATED_MEASURE_GROUP = 'Fact Köp' ;
答案 0 :(得分:0)
计算成员应包含计算表达式:
([Measures].[Internet Sales-Sales Amount] -
[Measures].[Internet Sales-Total Product Cost]) /
[Measures].[Internet Sales-Sales Amount]
请参阅technet Defining Calculated docs一些样本。