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

Sum of cube measue

$
0
0

Hello All,

I need solution for the below query  I have to create calculated measue in my cube let say i have dimnesion Date and a measure I need to display the total sum from all the previous date from the selected dates

the below query working fine on MDX editor but while putting this test member in cube as measure it is giving me the value for selected date only and not  sumed value of previous dates

WITH

MEMBER TEST AS SUM(NULL:[Date].[Month].Currentmember,[Measures].[Total Shipment])

SELECT
{ TEST,
[Total Shipment]

} on 0,
{
 [Date].[Date].&[2012/05/01]
 }
ON ROWS FROM
(SELECT([Set].[Set Name].&[2013/07 - D_PD_Test3]) ON  COLUMNS FROM

(SELECT([Item].[item].&[N900-8820-F05C])ON COLUMNS FROM
ABC]))



Viewing all articles
Browse latest Browse all 14337

Trending Articles



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