Hello, I finished recently my Dashboard which is about fuel-consumption and activity of several construction machines.
But the dashboard is loading quite slowly. So I was thinking that I could increase the performance by joining the tables you can in the first picture (initial situation). But I don't know how to do it.
The following code was my first attempt, but this ended up with several synthetic keys and circular references as you can see in the second pictures (Situation after code was added).