【问题标题】:about power bi dax transition: dose only the current table columns will be transformed to filter context关于 power bi dax 转换:仅将当前表列转换为过滤上下文
【发布时间】:2022-11-14 07:09:08
【问题描述】:

我有 4 张桌子:

  1. Dim_Calendar(日期、年名、月名)
  2. 发电机室(名称)
  3. 服务器的每月费用(日期、服务器 ID、发电机房间名称、费用)
  4. 发电机房的每月费用(日期、发电机房名称、费用)

    模型如下:

    • Dim_Calendar[日期] 发电机房的每月费用 1:n [日期]
    • Dim_Calendar[Date] 1:n 服务器每月费用[date]
    • Generator Rooms[name] Generator Rooms[Generator Room Name] 每月 1:n 成本
    • Generator Rooms[name] 1:n 服务器每月费用[Generator Room Name]

    然后我在表 monthly costs of the server 上创建一个计算列:

    Generator Room Cost = [room cost]
    

    措施是

    [room cost] = SUM('monthly costs of the Generator Rooms'[cost])
    

    那么表monthly costs of the server中每一行的计算列是按房间名称和日期过滤的,正如我从书中读到的,行上下文与表列一起,而表monthly costs of the server中的列无法过滤表中的数据monthly costs of the Generator Rooms

    我不知道为什么

    阅读有关章节行上下文转换的书

【问题讨论】:

    标签: powerbi


    【解决方案1】:

    计算列是静态的。您可以过滤它们,但它们不会重新计算过滤器更改。

    【讨论】:

      猜你喜欢
      • 2022-01-09
      • 1970-01-01
      • 2022-12-09
      • 1970-01-01
      • 1970-01-01
      • 2018-06-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多