@benwann1 @sam.mckay @Melissa it’s been asked before here. Plus Sam has date tables in his resources and a bunch of videos on this.
Here are the answer’s from Sam and Melissa which are on the money. :)
So just further to this, the current month needs the current date worked out in your date table logic first.
CurrentDate = DateTime.Date(DateTime.FixedLocalNow()),
Then you can add the current month offset m-code to your calendar query like this from the advanced editor window.
CurrentMonthOffset = Table.AddColumn(PreviousStepName, “CurrentMonthOffset”, each (Date.Year([Date])- Date.Year(CurrentDate) ) * 12 + Date.Month([Date]) - Date.Month(CurrentDate), Int64.Type),
This will extract the relevant month number of the current month.