Forum Discussion
jorgeaguirre
9 years agoFrequent Visitor
Average hours
Hi, I'm new to "power bi" I'm working on a project with direct query I need to get the AVERAGE, grouped by hours.
- 9 years ago
Do you have a Arrival Time column in your table? If yes, please try with following measure.
AVERAGE = FORMAT ( CALCULATE ( AVERAGE ( Table1[Arrival Time] ), ALLEXCEPT ( Table1, Table1[TimeHour] ) ), "HH:MM: SS" )Best Regards,
Herbert
jorgeaguirre
9 years agoFrequent Visitor
Hi, if your answer helped me with the above problem.
But I have another very similar problem in that I try to use the same formula but I can not make it work.
I'm working with "direct query" and I need to get the average "work time"
Something very similar to this. AVERAGE_WT = FORMAT (AVERAGE (View_AllRequests [Average Work Time]), "HH: MM: SS")
But I always get error.
v-haibl-msft
9 years agoMicrosoft Employee
- jorgeaguirre9 years agoFrequent Visitor