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

SSAS Cube Calculations Sum does not calculate correctly

$
0
0
Dear all
I am working with SQL Server 2012 SSAS.
I build my Cube everything is working very good.
I want to make a new “Calculations”
Create Member CurrentCube.Measures.[X]
AS
Sum(
{
[Market].[Market]. CurrentMember
[Region].[Region]. CurrentMember,
[Month].[Month]. CurrentMember
},
[Measures].[Value]);

It is not calculating right ?

Month      Country      Region              Market              SKU                Value               X
January      Egypt      Alexandria      Croissant        MoltoWC       261570.00      728390.00
January      Egypt      Alexandria      Croissant        MoltoSC       201500.00      728390.00
January      Egypt      Alexandria      Croissant        BrunchTC      2550.00          728390.00
January      Egypt      Alexandria      Croissant        BrunchTP      262770.00      728390.00
                                                                         Total                    728390.00      


The idea is that I want to 
Sum(Value)  Where (Market = Market and Region = Region and Month = Month)

Thanks,

Ramzy N.Ebeid



Viewing all articles
Browse latest Browse all 14337

Trending Articles



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