【问题标题】:MS Excel - Lookup Cube Dimension Name using Cube Dimension ID; Is it possible?MS Excel - 使用多维数据集维度 ID 查找多维数据集维度名称;是否可以?
【发布时间】:2016-12-01 02:32:52
【问题描述】:

是否可以在 Microsoft Excel 2016 中,仅使用 excel 公式,使用 Cube 公式构建公式,以根据用户提供的输入在多维数据集中查找值。

例如: Cube 中的表格如下所示: enter image description here

我希望能够在单元格 E1 中输入客户 ID,并在 F1 中返回与该 ID 相关的客户名称,在本例中为 Link。

我知道我可以通过引入数据透视表来使用 VBA 和 VLookup,但我试图仅使用 CUBE 公式来做到这一点。这可能吗?

【问题讨论】:

    标签: excel excel-formula mdx olap cube


    【解决方案1】:

    =CUBEMEMBERPROPERTY("Cube Connection",CUBEMEMBER("Cube Connection","[Customer Table].[Customer ID].["&G8&"]"),"Customer Name")

    答案就是上面的excel函数。请注意,IT 必须正确设置多维数据集。他们需要将该字段设置为多维数据集本身的属性。

    这里也是 CubeMemberProperty 函数的工作视频:https://www.youtube.com/watch?v=x9pcMa2GwJ8

    【讨论】:

    • 视频中的时间是 6'08:youtube.com/watch?v=x9pcMa2GwJ8&t=366 出于某种原因,Cubembember 属性的记录不足并且没有智能感知自动完成功能。您必须在引号之间输入属性并确保没有拼错。
    【解决方案2】:

    摸索后发现 Cubememberproperty 是 PowerPivot 不支持的 MDX 函数。此页面有一个使用 Exists 函数的解决方法: https://wessexbi.wordpress.com/2014/02/16/a-cubememberproperty-equivalent-with-powerpivot/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-01-22
      • 1970-01-01
      相关资源
      最近更新 更多