如何在 Analysis Services 中透明地显示非累加测量,就好像它们是累加的一样

发布于 2024-12-04 06:27:31 字数 204 浏览 3 评论 0原文

在我的多维数据集中,有某些非相加的度量,但是我可以计算每个向下钻取级别的值。不幸的是,计算太复杂,无法在 Analysis Services 中完成。 如果我预先计算我感兴趣的向下钻取级别,则必须将这些值放入每个向下钻取级别的单独事实表/度量组中,或者不是吗?是否可以以对最终用户透明的方式做到这一点?那么看起来应该只有一个事实表,并且 SSAS 会根据向下钻取级别自动从正确的事实表中选择值?

In my cube there are certain measures which are non-additive, however I can compute a value for every drill down level. Unfortunately the computation is too complex for it to be done in in Analysis Services.
If I precompute the drill down levels I'm interested in, I have to put those values into a separate fact-table / measure group for each drill down level, or don't I? Is it possible to do this in a way that is transparent to the end user? So it should look like there is only one fact table and SSAS automatically selects the value from the correct fact table based on the drill-down level?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

如果没有 2024-12-11 06:27:31

我在 Microsoft 论坛中找到了答案: http://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/d5998b23-936b-4e7b-b593-bd164b20c022

在“计算”选项卡上,您可以定义范围陈述:

在这个非常简单的示例中,当选择经销商销售额(在日历季度)时,将显示互联网销售额。

scope([Measures].[Reseller Sales Amount], [Date].[Calendar].[Calendar Quarter]);
    this=[Measures].[Internet Sales Amount];
end scope;

I found the answer in a Microsoft forum: http://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/d5998b23-936b-4e7b-b593-bd164b20c022

On the Calculate tab you can define a scope statement:

In this really trivial example, internet sales amount will be shown when reseller sales amount is chosen (at calendar quarters).

scope([Measures].[Reseller Sales Amount], [Date].[Calendar].[Calendar Quarter]);
    this=[Measures].[Internet Sales Amount];
end scope;
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文