📜  power bi sum hours as duration - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:05.081000             🧑  作者: Mango

代码示例1
Duration = 
 sumx('Individual Times', hour('Individual Times'[Time])) + TRUNC(sumx('Individual Times', MINUTE('Individual Times'[Time]))/60)  & ":" &
 mod(sumx('Individual Times', MINUTE('Individual Times'[Time])), 60) &
 IF(len(mod(sumx('Individual Times',MINUTE('Individual Times'[Time])), 60)) > 1,":00","0:00")