[英]Average Duration DAX Power BI
I'm trying to get the mean of a variable typed 'duration' in Power BI, creating a measure like in this formula:我试图在 Power BI 中获取变量类型“持续时间”的平均值,创建一个类似于以下公式的度量:
Medida = AVERAGE(Consolidado[TMA])
When I try this it returns a decimal number like '0.003..', but I can't modify this measure to duration/time.当我尝试这个时,它会返回一个十进制数,如“0.003 ..”,但我无法将此度量修改为持续时间/时间。
Can someone give me a hint?有人可以给我一个提示吗?
The DAX is basically summarizing the result. DAX 基本上是在总结结果。 To overcome this issue add the
FORMAT
function at the beginning and format it accordingly as you need.为了克服这个问题,在开头添加
FORMAT
function 并根据需要进行相应的格式化。
Measure = FORMAT(AVERAGEA('Table'[Date]), "HH:MM:SS")
This should give you the output in the Time Format.这应该为您提供时间格式的 output。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.