Splitting Payload of Device

Splitting Payload of Device

Hello,

How I can Split the payloads to represent how many times a Button pressed in one month. 

I want to use the pie Chart, to Show different States. 

Thanks 
Fabian