cube - MDX SSAS - Max Date in Measure -
just need max date in measures in cube. instance, dateid
dimention
, [measure].[first measure],...,...,[second measure]
.
how list of max(dateid)
measures in cube.
the following max date value associated each measure...but have manually create calculated member corresponding each measure.
with member [measures].[max date - internet sales amount] tail( nonempty( [date].[date].[date] ,[measures].[internet sales amount] ) ,1 ).item(0).membervalue member [measures].[max date - reseller sales amount] tail( nonempty( [date].[date].[date] ,[measures].[reseller sales amount] ) ,1 ).item(0).membervalue select { [measures].[max date - internet sales amount], [measures].[max date - reseller sales amount] } on 0 [adventure works]
if want single max date across measures in cube, you'll need take different approach.
Comments
Post a Comment