简体   繁体   English

提取MDX计算的成员值

[英]Extracting MDX calculated members' values

Does anyone know of a way to "extract" the formulas for all calculated members of a cube into some kind of flat, readable file? 有谁知道一种将多维数据集的所有计算所得成员的公式“提取”到某种形式的可读文件中的方法? Alternatively, a less-painful method of getting an overview of the code than using Analysis Services' Cube Editor and clicking on each Calculated Member would be helpful. 另外,与使用Analysis Services的多维数据集编辑器并单击每个计算所得的成员相比,使用较少痛苦的方法获得代码概述将很有帮助。 Yes, I'm new to MDX. 是的,我是MDX的新手。 Many thanks! 非常感谢!

If you are connecting to the OLAP cube via an Excel pivot table, then you can use the Olap Tools -> Convert to Formulas feature to expose the underlying cube formulas. 如果要通过Excel数据透视表连接到OLAP多维数据集,则可以使用Olap工具->转换为公式功能公开基础多维数据集公式。 I would recommend doing it for the smallest possible data because Excel will issue a large number of discovery requests to the OLAP server. 我建议这样做以获取尽可能少的数据,因为Excel将向OLAP服务器发出大量发现请求。 Please note I don't have any calculated measures, so I couldn't test if it actually does this... 请注意,我没有任何计算得出的量度,因此我无法测试它是否确实能做到这一点...

This is what "Registered User" was referring to - but it won't answer your question if I'm understanding it correctly. 这就是“注册用户”所指的-但如果我正确理解它将无法回答您的问题。

olappivottableextend.codeplex.com/ olappivottableextend.codeplex.com/

Fortunately, if I understand your question correctly, there is a very simple solution. 幸运的是,如果我正确理解了您的问题,那么有一个非常简单的解决方案。 When you are using BIDS against your cube, on the "Calculated Members" tab, click on the 12th icon from the left which is "Script View" - I think this is what you are looking for. 当您对多维数据集使用BIDS时,在“计算所得成员”选项卡上,单击左侧第12个图标,即“脚本视图”-我想这就是您想要的。

ssas-info.com/images/fbfiles/images/calc_tab.jpg ssas-info.com/images/fbfiles/images/calc_tab.jpg

Credit to ssas-info for the image (can't embed or post links because of my "reputation" - doesn't make sense, but ok). 将图片归于ssas-info(由于我的“信誉”而无法嵌入或发布链接-没有道理,但可以)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM