Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

MDX partial sums using cross join Expand / Collapse
Author
Message
Posted Thursday, October 03, 2013 10:51 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, January 28, 2014 11:28 AM
Points: 2, Visits: 23
Hi, I'm trying to using this MDX query to get partials sums by region, cities and proyects (first image),
but unfortunately I get this (second image).

This is the right approach? How I can remove the red regions (second image)?

Thanks in advance.



WITH
MEMBER [Measures].[PLAN] AS ([Dimension - Proyecciones].[Proyección].&[12],[Measures].[VPE - Escrituraciones])
SELECT
{
[PLAN]
}
ON COLUMNS,
NON EMPTY
(
(
(
EXCEPT([Dimension - Proyectos].[Región - Alias].children,[Dimension - Proyectos].[Región - Alias].[All].UNKNOWNMEMBER)
,[Dimension - Proyectos].[Ciudad].members

)
,[Dimension - Proyectos].[Proyecto].members
)
)
ON ROWS

FROM [BIGS - vivienda]
WHERE
(
[Dimension - Línea de Tiempo].[Calendario].[Mes].&[2.01309E3] --september, 2013
)


desired result


current result with red regions that I'm trying to remove


making simple things simple, making complex things possible
Post #1501276
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse