zoukankan      html  css  js  c++  java
  • 为AS 2005的Cube指定默认度量值

    In some cases, it is not obvious or easy to create a default measure in AS2005 cubes. In fact, there is no default measure by default, which can lead to long query times for queries that specify no measures. We have seen slow behavior with several query tools that display an initial default query or heavily browse the hierarchies, especially Proclarity.

    默认情况下,AS 2005的Cube并没有指定一个默认的度量值,这样的情况下,它会随便选择一个度量值作为默认度量值。如果用户在MDX中没有指定度量值的话。这可能会导致一些用户的困惑,以及可能降低速度

    为了解决这个问题,可以参考下面的两个步骤

    To add a default measure, you can follow the code below:

    1. Generate a new calculated member with NULL value: --创建一个计算成员,设置为空值

    CREATE MEMBER [CubeA].[MEASURES].NullMember AS null, VISIBLE = 0 ;

    2. Include the new member in the cube as default measure: --把该计算成员指定为多维数据集默认的度量值

    ALTER CUBE [CubeA]

    UPDATE DIMENSION Measures,

    Default_Member = [MEASURES].NullMember;

    也可以通过图形化界面去做这个事情(在Cube设计器里面)

    image image

  • 相关阅读:
    c++最大公约数
    c++判断一个整数里面是否包含 3 这个数字
    动态使用webservice,以及含有ref类型的参数的问题
    带有用户名密码验证的远程文件下载
    注册表
    fsdfasfsa
    C# addin 开发心得记录
    c# 读写注册表
    like的性能问题
    查找表中多余的重复记录(多个字段)
  • 原文地址:https://www.cnblogs.com/chenxizhang/p/1217236.html
Copyright © 2011-2022 走看看