This Topic helped me a lot.I would like to thank the author.
I would like to get a sum of a measure X for the currentyear but without the current month.Moreover I would like this to hapen dynamic.
I am getting the current month from
SET [Current Month] AS
strtomember("[TIME].[MONTH].&[" + CSTR(YEAR(NOW())) + "-"+ RIGHT("0" + CSTR(MONTH(NOW())), 2) +"-01T00:00:00]")