Quantcast
Channel: SQL Server Analysis Services forum
Viewing all articles
Browse latest Browse all 14337

Help to calculate Prev member and Current member for time

$
0
0

Apologies for confusing title, I'm trying to calculate growth over period (yearly, monthly, weekly), and looking for way to calculate something like below but not depending on time hierarchy (pls note that [Measures].[Cost]) semi additive, not summable over the time):

[Prev Period Monthly InventoryCost Measure]=([DateTime].Month.PrevMember ,[Measures].[Cost])

[Current Period Monthly InventoryCost Measure]=([DateTime].Month.CurrentMember ,[Measures].[Cost])

As you see my current formula has Month, but I want this to be period/hierarchy-agnostic (cuz I have several DateTime Hierarchies), how can I do this?

THANK YOU!


Viewing all articles
Browse latest Browse all 14337

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>