The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi all,
I am looking to calculate average sleep time for participants in a study.
I have used this measure:
CalendarDate | Participant ID | Sleep Time.1 | Sleep Time.2 |
15th December 2022 | 1001 | 14th December 2022 | 22:08:00 |
16th December 2022 | 1001 | 15th December 2022 | 23:07:00 |
17th December 2022 | 1001 | 16th December 2022 | 23:30:00 |
18th December 2022 | 1001 | 18th December 2022 | 00:11:00 |
19th December 2022 | 1001 | 18th December 2022 | 22:19:00 |
20th December 2022 | 1001 | 19th December 2022 | 21:45:00 |
21st December 2022 | 1001 | 20th December 2022 | 23:11:00 |
22nd December 2022 | 1001 | 21st December 2022 | 23:34:00 |
Thanks
Chris
@Anonymous -what is your expected output?
I see you got a solution to my problem as I received an email but I cannot see the solution posted here?
Thanks
that was by mistake. i got solution but that is also giving different answer it is giving 10:58.
No problem, I hope you can come up with the solution 🤞
22:58:00?
User | Count |
---|---|
68 | |
63 | |
59 | |
54 | |
28 |
User | Count |
---|---|
182 | |
81 | |
64 | |
46 | |
41 |