Hey community,
I'm working at a car manufacturer where we want to built an app to manage our batteries of EVs. Bascially battery meta data, used raw materials, costs, weight, recycability, ..... All this data is managed for the next 10-20 years and should be used mainly in charts for forecasts. To store the data we thought to use the dataverse and i created a few tables because i think that the data is highly related.
Tables:
Battery: Bat ID, Name, Total Weight
RawMaterial: Mat ID, Name
MaterialPriceMap: LookUp to RawMaterial, Price p ton (2022 to 2042) (>> 20 columns)
BatteryMaterialMap: LookUp to Battery, LookUp to RawMaterial, Amount of RawMaterial
One thing we want to do is to join the BatteryMaterialMap with the MaterialPriceMap to calculate the material cost or weight for one or multipple batteries for the next years. This data shall be shown as charts to have a management friendly forecast.
I'm not even sure of the approach with 20 columns (one for each year) is the best solution.
Now my questions
- How can i join the data from different tables and do calucation on the data. IN SQL i would use a view and simply join the data.
- Is the apprach with a column for each year a good approach or do you have better ideas. I had the idea for a single line column but was not able to view it as a chart
Many Thanks in advance
Martin