Without looking at each calculation that you're using its hard for us to guess. The mark type you're using is a line while in the 'correct' picture its polygon. I'd start there or you're going to need to share calculations/workbook.
You need to change your Marks from 'Automatic' to 'Polygon'.
Forgot.... You also need to change SUM(Path) to a 'Path' instead of 'Detail'