I have a table, Times. fields are: Horse, Track, HTime
Basically, my goal is to find out the difference between any track's timing, using only horses that have run at each of the 2 user-selected tracks.
My data table looks like this right now: (for simplicity sake, it has only 3 tracks; there are in actuality over 100)
Horse1 ... CT ... 52.50
Horse1 ... LRL ... 53.50
Horse1 ... PIM ... 53.00
Horse2 ... CT ... 53.00
Horse2 ... LRL ... 53.25
Horse3 ... LRL ... 52.95
Horse3 ... PIM ... 53.25
Horse4 ... PIM ... 53.15
Horse4 ... CT ... 52.75
I have tried the avenue of a crosstab called Test, rowheading is the Horse, columnheading is the Track and data-fills is the average HTime for each horse at each track.
What I want to do though is figure a method so a user can put in 2 tracks and get only the average difference in times for all horses that have run at both selected tracks. If a horse hasn't run at both tracks, his times aren't calculated.
Is there a manner to allow the user to select which columns matter (ie, CT and LRL or any combination the user desires out of a potential 100+ columns) and then only count the horses that ran both tracks?
Am I going the wrong way here with crosstabs? I am not code-smart but can get examples to work if given a way forward.
Basically, my goal is to find out the difference between any track's timing, using only horses that have run at each of the 2 user-selected tracks.
My data table looks like this right now: (for simplicity sake, it has only 3 tracks; there are in actuality over 100)
Horse1 ... CT ... 52.50
Horse1 ... LRL ... 53.50
Horse1 ... PIM ... 53.00
Horse2 ... CT ... 53.00
Horse2 ... LRL ... 53.25
Horse3 ... LRL ... 52.95
Horse3 ... PIM ... 53.25
Horse4 ... PIM ... 53.15
Horse4 ... CT ... 52.75
I have tried the avenue of a crosstab called Test, rowheading is the Horse, columnheading is the Track and data-fills is the average HTime for each horse at each track.
What I want to do though is figure a method so a user can put in 2 tracks and get only the average difference in times for all horses that have run at both selected tracks. If a horse hasn't run at both tracks, his times aren't calculated.
Is there a manner to allow the user to select which columns matter (ie, CT and LRL or any combination the user desires out of a potential 100+ columns) and then only count the horses that ran both tracks?
Am I going the wrong way here with crosstabs? I am not code-smart but can get examples to work if given a way forward.
Comment