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 3, 2013 11:02 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 projects (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 #1501280
Posted Sunday, October 6, 2013 11:26 PM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: 2 days ago @ 3:10 AM
Points: 1,047, Visits: 1,852
try this:

SELECT MEASURES.DEFAULTMEMBER ON 0,
NON EMPTY
{
GENERATE([Geography].[Country].[Country],[Product].[Category].ALLMEMBERS)
*[Geography].[Country].[Country] } ON 1
FROM [Adventure Works]



Regards/Raunak
Now a member of Linkedin

Please visit the all new Performance Point Forum
Please visit the all new Data Mining and Business Analytics Forum
Post #1501989
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse