Sorry for the very delayed reply, but could you provide some more detail on how you did this? I would love to replicate it for several things!
Specifically, the part I’m not understanding is how you embedded this in your monthly note - where did you save the code, etc.? 
Update: I figured it out! You need to wrap it in a dataviewjs code block:
```dataviewjs
--- code here ---
```