Query to find the number of bytes since first day of month

I am capturing the interface stats of an LTE/cellular modem via SNMP.

What I’d like to do is create a singlestat panel that shows the octets transmitted and received since the first day of the month.

I assume I need to use the derivative function, but I’m at a loss on how to actually create the query.

Any ideas?