Forum Discussion
Anonymous
6 years agoNot applicable
Calculate an average time based on different users
Hello, So I'm fairly new to Power BI and I'm still trying to learn the ropes. What I'm trying to do is basically calculate a user's average time overall. I'll make a a mock table as an example. ...
- 6 years agoCreate 3 new COLUMNS (not Measures) - Or you can try to Push these all together using VARS, but I like to keep it simple. You'll need to do Modeling-> Formatting to get things back into Date/Time HH:MM:SS formats, but this is the general idea... And make sure everything is set to 'Don't Summarize'.FOrrestTotal Seconds = (HOUR(Table1[Pick Time]) * 3600) + (MINUTE(Table1[Pick Time]) * 60) + (SECOND(Table1[Pick Time]))Average Column = CALCULATE(AVERAGE(Table1[Total Seconds]), ALLEXCEPT(Table1, Table1[User Picking]))Average Time = TIME(0,0,Table1[Average Column])
Manner_Valdez
6 years agoRegular Visitor
Power Bi works very similar to excel, if in excel your cell format is Text you will not be able to make calculations of any type with values
Before making the formulas make sure that your times are in "Time, Date, or Datetime"
Otherwise convert the column type or pass the function to convert them before calculating with the data