简体   繁体   English

Power BI 中基于 2 个表之间关系的计算列

[英]Calculated column in Power BI based on relationship between 2 tables

我的数据模型截图

Hi,你好,

I'm trying to add a calculated column in my MergedTable table that will multiply the Time column by the sum of the indicator in the TeamLeave when the week ending dates and the name dates are the same but I'm not sure how or what functions to use(I've tried a number at this stage).我想加入我的MergedTable表计算列将由指标的总和在TeamLeave乘以时间列当周结束日期和姓名日期是相同的,但我不知道怎样还是怎样的功能使用(我在这个阶段尝试了一个数字)。

Could anyone provide me with assistance on this?任何人都可以为我提供这方面的帮助吗?

Thanks,谢谢,

This:这个:

'MergedTable'[Time] * CALCULATE(SUM('Team Leave'[Indicator]))

The CALCULATE is necessary to perform a context transition (turning the "current row" of 'MergedTable' into a filter that will propagate to the 'Team Leave' table). CALCULATE是执行上下文转换所必需的(将“MergedTable”的“当前行”转换为将传播到“Team Leave”表的过滤器)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM