Ok, thanks a lot for the suggestions Vic. I exported the {NamespaceName}PKG.HubProduction file from the registry from the test environment and imported it into the production environment. I found all the production components already connected and with the settings compiled. I will proceed in the same way for the repository and hub.

Thank you a lot Dmitrij, 

i used your function in architect defining a Calculated Member, than in analyzer used that member as measure. 

I tried 'SUM(PERIODSTODATE([Date].[Hierarchy].[Level], [Date].[Hierarchy].[Day].&[SpecificDay]), MEASURES.[Count])'
but i obtained a pivot table with all cells full of 0.
I got what I needed with the function you suggested.