powerbi - 使用 DAX 在 Power BI 中按不同标识符聚合值

标签 powerbi dax

这是我的 table : enter image description here

当我按 group_no 创建汇总表时,Power BI 中有下表:

enter image description here

但是,这就是我想要的:

enter image description here

因此,我想要获得的是按群组 (group_no) 上唯一的 project_no 划分的总收入。

最佳答案

给你:

enter image description here

aggregated_revenue = 
VAR tbl = SUMMARIZE('Table', 'Table'[project_no], 'Table'[revenue])
RETURN SUMX(tbl, 'Table'[revenue] )

关于powerbi - 使用 DAX 在 Power BI 中按不同标识符聚合值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/75791253/

相关文章:

powerbi - 动态 DAX 数字格式

powerbi - 标记为经过培训和认证

powerbi - Power bi 计算比率

使用附加条件查找第二个最小值的 DAX 公式

powershell - 如何使用 azure CLI 和 power shell 脚本实现自动登录,无需用户交互从 VSTS 进入 azure 门户

azure - 我可以在 Power BI 中使用 Azure 认知搜索吗?

powershell - 电源 BI : Attempting to update parameter vi PowerShell API call

azure - Power BI - 使用 nextLink 调用 Azure API(下一页)

ssas - DAX SUMX : Storing a filtered table in a VAR and reference its columns later on in the expression

powerbi - 使用if和最大值DAX的运行总计