时间层次MDX需要 [英] Time hierarchy MDX needed

查看:119
本文介绍了时间层次MDX需要的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


i具有以下格式的时间维度Year->季度 - >月份



但是当月与上个月相比,它无法整合正确的结果



与老板讨论后我需要的不是一个新的层次结构,它将是  Year->月份通过以下方式解决


IIF(

([措施]。[措施]。[销售欧元],

[v Time3 1]。[KPI月] .CURRENTMEMBER.PARENT)= 0,Null,

([Measures]。[Sales Euros],

[v时间3 1]。[KPI月] .CURRENTMEMBER)/

([Measures]。[Sales Euros],

[v Time3 1]。[KPI月] .CURRENTMEMBER.LAg(1)))



但可能是一个mdx  ,仅限前几个月,达到季度水平,上一季度,最后得到它上个月。



 你可以提供我应该用作起点的语法,或者一些评论或功能吗? < span style ="color:#333333; font-family:'Segoe UI','Lucida Grande ,宋体,Arial字体,黑体,无衬线; font-size:14px">




提前谢谢

p>




解决方案

嗨Aristovoulos,


根据您的描述,您似乎想要将之前的日期与当前日期级别进行比较,对吧?如果是这样,您上面的表达式应该有效。下面是我的测试,



因此,使用此表达式时有什么问题?如果可能的话,请你详细告诉我。


最好的问候,

Zoe Zhi


i have a time dimension in the following format Year-> Quarter -> month

but it fails to integrate correct results when doing month vs previous month

What i need after discussing with my boss is not a new hierarchy which would be Year-> month and solved through the following 

IIF(
([Measures].[Measures].[Sales Euros],
[v Time3 1].[KPI Month].CURRENTMEMBER.PARENT)=0,Null,
([Measures].[Sales Euros],
[v Time3 1].[KPI Month].CURRENTMEMBER)/
([Measures].[Sales Euros],
[v Time3 1].[KPI Month].CURRENTMEMBER.LAg(1)))

but probably an mdx that , for first months only, to go up to the quarter level, get previous quarter, and finally get its last month.

 can you please provide the syntax ,or, some comments, or, functions i should use as a starting point?

Thank you in advance

解决方案

Hi Aristovoulos,

According to your description, it seems that you want to compare previous with current date level, right? If so, you above expression should work. Below is my test,

So  what is your problem when use this expression. If possible, could you please inform me in details.

Best Regards,
Zoe Zhi


这篇关于时间层次MDX需要的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆