使用范围将值从一个度量复制到另一个度量

编程入门 行业动态 更新时间:2024-10-28 00:16:05
本文介绍了使用范围将值从一个度量复制到另一个度量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

以下是我要覆盖市场得分值

Below is the scenario in which i want to overwrite the value of market score with over score. If over score exists.

这是预期的输出。

谢谢

推荐答案

从头开始编写范围语句很难,而不知道多维数据集的结构是什么样的。但是如果你只是希望这个范围适用于维度,你向我们展示了q1,q2,q3成员,你可以使用类似下面的(替换< attribute>和< level>位置持有者)使用多维数据集中对象的名称:

It's pretty hard to write a scope statement from scratch without knowing what the structure of the cube is like. But if you just want this scope to work over the dimension you showed us with the q1,q2,q3 members in it you could use something like the following (replacing the <attribute> and <level> places holders with the names of the objects from your cube:

SCOPE(Dimension。< attribute>。< level> .Members,[Measures]。[Market Score]); this = COALESCEEMTPY([Measures]。[Over score],[Measures]。[Market score]) END SCOPE;

SCOPE (Dimension.<attribute>.<level>.Members , [Measures].[Market Score] ); this = COALESCEEMTPY([Measures].[Over score],[Measures].[Market Score] ) END SCOPE;

更多推荐

使用范围将值从一个度量复制到另一个度量

本文发布于:2023-07-09 15:04:16,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1087170.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:度量

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!