I created sample data like you have given. Now proceed this way
create a calculated field office
with the following calculation
SUM(
IF [item] = "pen" OR [item] = "book" then [value] ELSE 0 END
)
Add this field to viz and your desired output is ready
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…