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

Last Nonempty Member till current date for all time hierarchy

$
0
0

Hi All,

I have a cumulative data coming from source. Some dates will not have data, it will be null in database.
In my cube, I have two time hierarchy Year-Quarter-Month-Date and Year-Fiscal Week
Also we are using fiscal dates which starts from Nov 1 to Oct 31
But I need to populate it with last non empty values in all time hierarchy.
We are able to achieve it with

TAIL(
NONEMPTY({NULL:[Date].[Date].CURRENTMEMBER} * [Measures].[Sales])
).ITEM(0))

We have some data for future date also and recursion is happening for those dates. We have a requirement to stop the recursion with current date for all date hierarchies. Can you guide me getting this done.

I appreciate your time and effort on this

With best regards
Vijaya


Viewing all articles
Browse latest Browse all 14337

Trending Articles



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