Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello,
I'm new to power bi and I have a column that already has time as hh:mm:ss but I need to get the average and everytime I try it only gives me the option of earliest or latest. I've tried a measure =average('table[column]) but it doesn't work.
You can very easily do it:
[Measure] =
CONVERT(
AVERAGEX(
'Table',
1 * 'Table'[Column]
),
datetime
)
hi @Mgrstrg
Usually Time Value cannot be Averaged out since it is not a mathematical expression. Though there is an alternate way to find the mid value of different Time.
1. Convert Time into Integer. It can be done using
TimeInInt = HOUR(Table1[Time])*3600+MINUTE(Table1[Time]*60)+SECOND(Table1[Time])
2. Take Average of this number. It can be done using
TimeAvg = CALCULATE(Average(TimeInInt))
3. Convert this Integer back to Time. Please refer below Article for exact calculation
Solved: Convert An Int Field to Time Format - Microsoft Power BI Community
Please let me know if this works!
Thanks!!!
Kindly accept the solution if you agree 🙂 and would love to have Kudos if you like!!!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
10 | |
10 | |
10 | |
10 |
User | Count |
---|---|
19 | |
14 | |
13 | |
11 | |
8 |