我需要创建一个HR立方体中的中位年龄立方体计算。
衡量标准:人数和FTE
维度: Age (年龄,Age_Group,...),Duty_type,Staff (Staff_ID,...),Date等
我尝试使用以下MDX脚本:
Median([Month Date].[Staff Profile Month Date - Hierarchy].[Month Date Calendar Year].currentmember.Children ,IIF([Age].[Age].currentmember.name ='All' ,0,StrToValue([Age].[Age].currentmember.name)))我使用了以下帮助:http://msdn.microsoft.com/en-us/library/ms145570.aspx
如何解决这个问题呢?
发布于 2012-08-27 08:29:14
创建名为Sum Age(使其不可见)的基本度量值,并使用它来创建中位数计算度量值。
Median([Staff].[Staff ID].currentmember.children,[Measures].[Sum Age])https://stackoverflow.com/questions/12067164
复制相似问题