# QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
cancel
Showing results for
Did you mean:
Partner

## Dynamic calculation

I got this table who contain lap info of my running. I would like to find the fastest 5k of any run. How can I do that?

E.g if i ran 8k i would like to calculate the time used for 1-5km, 2-6km 3-7km, 4-8km and rank then by the time used.

1 Solution

Accepted Solutions
Luminary Alumni

Jakob,

Attached isn't the complete and polished solution but it should start you on the right path (running track!?).

Essentially I'm using the rangesum function to show for each Mile how long it took to complete that mile and the next 4 (making 5 in total) thus allowing you to see which group of 5 took the shortest amount of time.

With some slight changes you should be able to isolate the date (run) as well making it do as you require.

Hope that helps,

Matt - Visual Analytics Ltd

4 Replies
Not applicable

Show the result data which you would expect to see.

Luminary Alumni

Jakob,

Attached isn't the complete and polished solution but it should start you on the right path (running track!?).

Essentially I'm using the rangesum function to show for each Mile how long it took to complete that mile and the next 4 (making 5 in total) thus allowing you to see which group of 5 took the shortest amount of time.

With some slight changes you should be able to isolate the date (run) as well making it do as you require.

Hope that helps,

Matt - Visual Analytics Ltd

Partner
Author

I would like to se the time for any 5k interval for any run.

Partner
Author

I made this code in the chart and it seems to work...

if

(rangesum(Below(Distance,0,5))=5000, time((rangesum(Below(Minutes,0,5)))/1440,'h:mm:ss'))