我有一种情况,我有一个列的空值,该值需要用另一个值替换。
当前的mdx
select
non empty { [measures.[Color count]} on columns
,non empty { [ColorColor].[Color].[Color].allmembers}
Dimention properties
member caption
,member_unique_name
on rows
from [Colors]
当前结果
Color Color Count
null 1
Red 1
Blue 1
Purple 1
Black 1
预期结果
Color Color Count
Silver 1
Red 1
Blue 1
Purple 1
Black 1
基本上我需要用“silver”颜色替换null。还需要在mdx中替换null,而不是在ssrs中替换。
答案 0 :(得分:1)
使用<svg class="cls-1" width="100" height="100" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1417 1632h-1118v-480h-160v640h1438v-640h-160v480zm-942-524l33-157 783 165-33 156zm103-374l67-146 725 339-67 145zm201-356l102-123 614 513-102 123zm397-378l477 641-128 96-477-641zm-718 1471v-159h800v159h-800z"/></svg>
您可以创建一个新项目,为其提供您想要的任何名称,并告诉它从NULL项目中获取其值。然后,您可以使用WITH MEMBER
函数的第二个参数隐藏您不想要的项目。
EXCEPT