Looks like you did your equations right.
The only thing it looks like you forgot was to then include the 'item Type' into your rows and subsequent table calculation.
And now they match!
Can also see in attached workbook.
If this solves your problem please mark this post as answered