I have a table like this:

I want to calculate the current value of a single month in another column as the difference between this month and previous (grouping by "group"), except January because the value resets every year.
I want to obtain a table like this:

I tried different functions as:
MonthlyValue =
CALCULATE(Table[RunningValue], PREVIOUSMONTH(Table[Period]
and
MonthlyValue =
VAR Cumulative=Table[RunningValue]
VAR PreviousCumulative=
CALCULATE(
[RunningValue],
DATEADD(Table[Period], -1, MONTH)
)
RETURN
Cumulative-PreviousCumulative
However, I always obtain the same RunningValue (correct only for jan). Not the difference between actual and previous RunningValue.
