Within an SSAS cube I administer, there are many Time dimensions with named sets. One of which returns previous week current year. Below example of set being used.[code="sql"]WITH DYNAMIC SET [Test] AS StrToSet ( " ParallelPeriod ( [Finance Date].[Year-Week].[Week], 1, StrToMember('[Finance Date].[Year-Week].[" + Cstr(datepart("yyyy",now())) + " Week " + Cstr(datepart("ww",now())) + "]') ) " )SELECT {[Test]} ON COLUMNSFROM [cube];[/code]Very simple. This should return Week 43 from the dimension.When I run this on a SQL Server 2012 instance it correctly returns Week43.I have restored the same SSAS cube to a 2016 Server, still pointing to the same datasource of the SQL Server 2012, and it's returning Week 42.I have tried a Full re-processing of the measures and dimensions but this hasn't helped.I have checked the system clock on the server.Any suggestions??
↧