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

Count Columns Expand / Collapse
Author
Message
Posted Sunday, July 14, 2013 12:08 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, March 20, 2014 5:08 AM
Points: 4, Visits: 41
Hi hi have a follow result on my mdx query

groupA | groupB | groupC | TOTAL

100 200 400 3



ihi already made the groups, but i don't know how can i count my columns TOTAL
as you can see on result . but only present if there is values


with
member GroupA as Sum({[d P].[ID P].CurrentMember}*[d Condition Type].[Code].&[A01],[Measures].[f Validated Condition Count])
member GroupB as Sum({[d P].[ID P].CurrentMember}*[d Condition Type].[Code].&[B01],[Measures].[f Validated Condition Count])
member GroupC as Sum({[d P].[ID P].CurrentMember}*[d Condition Type].[Code].&[C01],[Measures].[f Validated Condition Count])
member Total as COUNT([d P].[ID P],[d Condition Type].[Code].&[A01])
// COUNT(,
// {[d Condition Type].[Code].&[A01],,
// [d Condition Type].[Code].&[B01],
// [d Condition Type].[Code].&[C01]
)
SELECT {GroupA,GroupB,GroupC,Total} on 0
FROM [Cube2]

Can you help me... it will be greatful

thks

Post #1473373
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse