If your end users are only selecting one month at a time, you could use a parameter to select the month. Then you can reference the parameter in your calculation:
IF [Month of Order Date] = [Month of Order Date Parameter]
This will first return only the sales for the month chosen in the parameter. Then it will determine rank based on those filtered sales.
Hope this answers your question