使用 MDX Correlation() 函数查找 2 维成员的相关性
我试图找到维度的两个成员之间单个度量的皮尔逊相关性,但是 msdn 文档 有点稀疏。具体来说,我有一个带有 fact count
度量、date
维度和 tool
维度的多维数据集,我想找到以下相关性日期维度上的工具 X 和工具 Y。
I'm trying to find the Pearson correlation of a single measure between two members of a dimension, but the msdn docs are a bit sparse. Specifically I have a cube with a fact count
measure, a date
dimension, and a tool
dimension and I'd like to find the correlation of tool X and tool Y over the date dimension.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看一下以下脚本(Adventure Works DW 2008 R2):
它将返回行( 2007 日历年季度和 2007 日历年)。我在评论中留下了其他类似的成员。
HTH,
赫尔沃耶·皮亚塞沃利
take a look at the following script (Adventure Works DW 2008 R2):
It will return correlation of [Internet Sales Amount] measure for two different product subcategories ("Mountain Bikes"/"RoadBikes") for months of current date member on rows (Calendar Year 2007 quarters and Calendar Year 2007). I have left other comparable members in comments.
HTH,
Hrvoje Piasevoli