Forum Discussion
Averages or Median Times Values
- 6 years ago
Hi,
In Power BI, it’s not supported to display the time format value (hh:mm:ss) in chart Y axis. In your scenario, I would suggest you convert the time format values to numbers with interval seconds, then calculate average based on the seconds.
Please try these two measures.
One is to calculate the seconds of [INDICADOR 1]:
Recuento de INDICADOR 1
= MINUTE(Table47[INDICADOR 1])*60+SECOND(Table47[INDICADOR 1])
The other is to calculate the average seconds of [INDICADOR 1]:
Average =
CALCULATE(AVERAGE(Table47[Recuento de INDICADOR 1]),ALLEXCEPT(Table47,Table47[SEG_HORA]),FILTER(Table47,Table47[SEG_MES]=MAX(Table47[SEG_MES])&&Table47[SEG_DIA]=MAX(Table47[SEG_DIA])))
Here is my test table.
The result shows:
Here is my test pbix file.
If you still have questions about it, please for free to let me know.
Best Regards,
Giotto Zhi
Hi,
In Power BI, it’s not supported to display the time format value (hh:mm:ss) in chart Y axis. In your scenario, I would suggest you convert the time format values to numbers with interval seconds, then calculate average based on the seconds.
Please try these two measures.
One is to calculate the seconds of [INDICADOR 1]:
Recuento de INDICADOR 1
= MINUTE(Table47[INDICADOR 1])*60+SECOND(Table47[INDICADOR 1])
The other is to calculate the average seconds of [INDICADOR 1]:
Average =
CALCULATE(AVERAGE(Table47[Recuento de INDICADOR 1]),ALLEXCEPT(Table47,Table47[SEG_HORA]),FILTER(Table47,Table47[SEG_MES]=MAX(Table47[SEG_MES])&&Table47[SEG_DIA]=MAX(Table47[SEG_DIA])))
Here is my test table.
The result shows:
Here is my test pbix file.
If you still have questions about it, please for free to let me know.
Best Regards,
Giotto Zhi
Thanks for you Support.
The most important thing, is change all time value in seconds
In column "Dura_Tot_Seg, is sum hour, min, and seg.
After that i make the measurements: