Forum Discussion
BoPowerBI
6 years agoFrequent Visitor
Average time calculation, calculated column or measure?
Hi all, I'm trying to get my head around PowerBI and measures and I couldn't find an answer, please help. This is an excerpt from my datatable of 18th of June 2020 during different time slots...
ryan_mayu
Super User
6 years ago
Maybe you can try create a column first.
totalseconds = 'Table (2)'[numcalls]*'Table (2)'[wating]*24*3600
Then create a measure
avgseconds = sum('Table (2)'[totalseconds])/sum('Table (2)'[numcalls])Hope this is helpful.
- BoPowerBI6 years agoFrequent Visitor
Hi Ryan,
Thanks! I was specifically wondering (see my first question) if it is best practice to use a measure only or if I can use a solution like you propose. I've heard that Calculated Columns weigh too much on the speed of the data model or is it only the case in super complex calculated columns?
Any ideas?