I have four fields of information
Year | Month | Type | SubType | Value
I want to group first based on Type and then on the SubType and do a YTD and Rolling-12 calculation based on the Year and Month provided. This will undoubtedly be 2 separate queries.
Also, IF POSSIBLE:
If there ARE NOT 12 months to "roll" on for a particular month, to show a "-" or something to signify that there are not 12-months to roll on.
I'm really just not skilled enough to write this query. If someone can help me write it, I would be unbelievably appreciative.