You can use the TOTAL keyword in your expression to achieve this.
your expression will look like sum(TOTAL <Building> Value)
here Building represents the name of the filed which contains the building dimension and Value represents the name of the field which contains the value for the building.