摘要:
日均值是比较常见的指标,本文对 MDX 计算日均值做一个总结MDX 计算日均值,表达式一WITH MEMBER Measures.[日均值] ASAvg(Descendants( [日期].[日期层次].CurrentMember, [日期].[日期层次].[日期] ), Measures.[主帖数] ) ,Format_String = "#,##0"SELECT Measures.[日均值] ON COLUMNS, [日期].[日期层次].[月份] ON ROWSFROM [forum]上面的代码使用Descendants获得在当前层次上的所有日期集合然后使用avg函数 阅读全文
摘要:
with member [Measures].[终端销售数量总计] as sum(ytd([日期].[年月].CurrentMember),[Measures].[终端销售数量])member [Measures].[仓库出货数量] as sum(ytd([日期].[年月].CurrentMember)*[物流类型].[物流类型ID].&[仓库出货],[Measures].[渠道出货数量_出货日期])member [Measures].[收退数量] assum(ytd([日期].[年月].CurrentMember)*[物流类型].[物流类型ID].&[仓库收退],[Measu 阅读全文