Qlik Community

Ask a Question

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
Join us at the Cloud Data and Analytics Tour! REGISTER TODAY
cancel
Showing results for 
Search instead for 
Did you mean: 
jakob_hansen
Partner
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.

error loading image

1 Solution

Accepted Solutions
matt_crowther
Luminary Alumni
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

View solution in original post

4 Replies
Not applicable

Show the result data which you would expect to see.

matt_crowther
Luminary Alumni
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

View solution in original post

jakob_hansen
Partner
Partner
Author

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

jakob_hansen
Partner
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'))