djeans Posted May 27, 2008 Posted May 27, 2008 I have a problem I hope someone can help me solve. I have a table that I log the odometer miles of my motorcycle into every time I have a service or issue with the bike. I would like to create a report that shows the average miles in between issues, but I'm not sure how to go about it. Any ideas?
Hare Posted May 27, 2008 Posted May 27, 2008 I think you can just compute this by dividing the total miles travelled by the number of issues. Depending on your structure, this could be done using the average () function If you have a line items file for issuesm then: Average ( Issues::OdometerPosition)
mr_vodka Posted May 27, 2008 Posted May 27, 2008 To get the miles difference between records, you can try a calculation with: Miles - GetNthRecord ( Miles ; Get ( RecordNumber ) -1 ) Then create another calc field or summary field that averages the first calc. This is pending the premise that your records are created with the miles always increasing as well as displaying all the records. If not, then you can use a self join to get around it.
Recommended Posts
This topic is 6084 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now