Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello!
I have tablee with time column in format - hh:mm. The column indicated as Spend time on site. Now, I need to define avarage of this column.
When I created card and added Spend time on site to value thus I received uncorrect decimal number.
How I can fix it?
Thank you in advance!
Solved! Go to Solution.
Hi @key_master_95 ,
The DAX is basically summarizing the result. Please add the FORMAT function at the beginning and format it accordingly as you need.
Measure = FORMAT(AVERAGEA('Table'[Time]), "HH:MM:SS")
This should give you the output in the Time Format.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi key_master_95
You could change the time into a number of minutes.
I tried it too, but here was a problem with data format.
Thank you for answer!
Hi @key_master_95 ,
The DAX is basically summarizing the result. Please add the FORMAT function at the beginning and format it accordingly as you need.
Measure = FORMAT(AVERAGEA('Table'[Time]), "HH:MM:SS")
This should give you the output in the Time Format.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
It works. Perfect!
Thank you a lot!
@key_master_95 Check these out:
Duration to Seconds Converter - Microsoft Power BI Community
Chelsie Eiden's Duration - Microsoft Power BI Community
Thsnk you, but it doesn't work. I taped this formulas, but result is 0 (it's not true). I think, the first step is convert from HH:MM:SS to integer. But I don't know how to do it
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 38 | |
| 37 | |
| 28 | |
| 28 |
| User | Count |
|---|---|
| 124 | |
| 89 | |
| 73 | |
| 66 | |
| 65 |