Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

Count Columns Expand / Collapse
Posted Sunday, July 14, 2013 12:08 PM


Group: General Forum Members
Last Login: Monday, May 9, 2016 5:38 AM
Points: 12, Visits: 74
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

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


Post #1473373
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse