Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Costs per one Vehicle

Hello! I have a big problem. I can't find thecorrect solution for my problem. I have 2 tables: one is Claims table and second is Bus_Truck_Sale table. The key field in Claims table should be "ChassiNo" and in Bus_Truck_Sale table - "VIN". I need to make graph Costs per one Vehicle it means: I should make SUM(AATotalCosts) from table Claims devide it COUNT(DISTINCT VIN) from table Bus_Truck_Sale in 12 months back period. The couted vehicles must not be older 12 months in this period. Some vehicles are in bouth tables some not, but when I couting vehicles I should in clude vehicle which don't have any claims but it sold in this period.

0 Replies