【问题标题】:Create relationship on tables for both ID and TIMESTAMP在表上为 ID 和 TIMESTAMP 创建关系
【发布时间】:2020-07-18 03:00:33
【问题描述】:

我有两张每天保存数据的表。

表1:

  • 时间戳/id_1/value1/value2
  • 01.01.2020/123/asdf/xyz
  • 02.01.2020/123/asdf/xyz12
  • 03.01.2020/222/asdf/ertw

表2:

  • 时间戳/id_2/value1/id_1
  • 01.01.2020/345/asdfx/123
  • 02.01.2020/345/asdfy/123
  • 03.01.2020/678/asdfc/222

两个表之间存在关系:

  • 表 2 * : 1 表 1

我创建关系时的问题是,它无法识别时间戳。

您知道如何实现通过 ID 和时间戳建立关系吗? 以便: “02.01.2020/345/asdfy/123”与“02.01.2020/123/asdf/xyz12”相关 和: “01.01.2020/345/asdfx/123”与“01.01.2020/123/asdf/xyz”相关

非常感谢! 我正在 PowerBI 中构建数据模型。

【问题讨论】:

    标签: join powerbi relationship


    【解决方案1】:

    只需连接电源查询(或源或 sql)中唯一 id 的列并将其用于连接

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-04-13
      • 1970-01-01
      • 2023-01-08
      • 1970-01-01
      • 2017-03-07
      • 1970-01-01
      • 1970-01-01
      • 2014-08-22
      相关资源
      最近更新 更多