Forum Discussion
Anonymous
5 years agoNot applicable
Average lead time
Hello all, I'm trying to figure out how to show my average lead time, changeable with whatever the user selects as filter (year, type of ticket, drill down deeper into a year for months etc.) as ...
- 5 years ago
Hi Anonymous ,
Using your oringinal data "Seconds" for calculation would be better.
Create 2 measures as below:
average = AVERAGEX(ALLSELECTED('Table'),'Table'[Seconds])format = var _hour=INT('Table'[average]/3600) var _min=INT(DIVIDE('Table'[average]-_hour*3600,60)) var _sec=INT('Table'[average]-_hour*3600-_min*60) Return _hour&":"&_min&":"&_secAnd you would see:
For my related .pbix file,pls see attached.
Best Regards,
KellyDid I answer your question? Mark my post as a solution!
Anonymous
5 years agoNot applicable
Wow! Thanks a lot! I can't thank you enough, this saved such a headache. Thank you for the expert help.
v-kelly-msft
Community Support
5 years agoHi Anonymous,
It's my pleasure.🙂
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!