MDX Select measures between two values -
i have fact table stores each record init_year , end_year integers, refer year range in record valid.
in way can design mdx query select measures (count) each year, in order have trend of measures on year?
thanks
i'm not sure should done in mdx.
this sort of thing calculated in fact tables (linked dimension table of available years), , new measure created. no calculation done in mdx; you'd display new measure.
having said that, i've googled "mdx count start end date" , found www.purplefrogsystems.com/blog/2013/04/mdx-between-start-date-and-end-date suggests use linkmember function. example code was...
aggregate( {null:linkmember([date].[calendar].currentmember ,[start date].[calendar])} * {linkmember([date].[calendar].currentmember , [end date].[calendar]):null} , [measures].[project count])
...or...
aggregate({null:[date].[calendar].currentmember} , [measures].[project count])
...but needs careful reading!
Comments
Post a Comment