Calculated Fields

by camel

Downloads: 23,628 (9) • Reviews: 4

Version:

1.2.9.4

Updated:

Apr 11, 2011

Calculations for the first XX minutes of a run?

Calculations for the first XX minutes of a run?

Postby SojiOkita » Mon Apr 13, 2015 4:21 am

Hi everyone.

Is it possible to make statistics for the first XX minutes of a run?

For example I would like to know how much time I spent within the first 30 minutes with HR between 115 and 140.
That would be like the formula {RANGEELAPSED(HR,115,140)} but with a second condition on elpased time.
SojiOkita
 
Posts: 9
Joined: Tue Oct 16, 2012 2:43 pm

Re: Calculations for the first XX minutes of a run?

Postby AlexMTB » Mon Sep 19, 2016 3:27 am

Yes, it is possible:

Expression:

{dataTrack}.Where(o => o.Elapsed >= 0 && o.Elapsed <= XX && o.HR >= 115 && o.HR < 140).Count()

Change XX value for the desired minutes in seconds and HR values, 30 minutes example with HR beetwen 115 and 140:

{dataTrack}.Where(o => o.Elapsed >= 0 && o.Elapsed <= 1800 && o.HR >= 115 && o.HR < 140).Count()
AlexMTB
 
Posts: 32
Joined: Mon Sep 07, 2015 6:22 am

Re: Calculations for the first XX minutes of a run?

Postby SojiOkita » Tue Sep 20, 2016 3:34 pm

Thanks a lot, that works perfectly!
SojiOkita
 
Posts: 9
Joined: Tue Oct 16, 2012 2:43 pm


Return to Calculated Fields

Who is online

Users browsing this forum: No registered users and 1 guest