【发布时间】:2022-11-14 07:09:08
【问题描述】:
我有 4 张桌子:
- Dim_Calendar(日期、年名、月名)
- 发电机室(名称)
- 服务器的每月费用(日期、服务器 ID、发电机房间名称、费用)
- 发电机房的每月费用(日期、发电机房名称、费用)
模型如下:
- 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