eo
MIS
- Apr 3, 2003
- 809
Hi
I am hoping that I am on the right track here. I have a SSAS 2005 cube. In rows I have a date attribute. The cells contains I want to show an accumulated distinct count of claim numbers. The following code shows an example of the basic dataset:
But I need to accumulate these distinct claim numbers across the dates in a running total/ accumulated fashion. I.e. first across 2004, then across 2004 & 2005, and then across 2004 - 2006
I ideally need to create a calculated measure within SSAS 2005. I have been searching along the lines of the following code...
...you will notice that I do not have a measure in the syntax as I am rather trying to create one...am I on the worng track completely?
EO
Hertfordshire, England
I am hoping that I am on the right track here. I have a SSAS 2005 cube. In rows I have a date attribute. The cells contains I want to show an accumulated distinct count of claim numbers. The following code shows an example of the basic dataset:
Code:
Claim No
2004 A10
2004 A10
2004 A18
2004 A17 - Dist count of claim no = 3
2005 A17
2005 A18
2005 A21
2005 A29 - Dist count of claim no = 4
2006 A10
2006 A21
2006 A30
2006 A10 - Dist count of claim no = 3
But I need to accumulate these distinct claim numbers across the dates in a running total/ accumulated fashion. I.e. first across 2004, then across 2004 & 2005, and then across 2004 - 2006
Code:
DistCount
2004 3 - A10, A17, A18
2005 5 - A10, A17, A18, A21, A29
2007 6 - A10, A17, A18, A21, A29, A30
I ideally need to create a calculated measure within SSAS 2005. I have been searching along the lines of the following code...
Code:
count(distinct ({null:[Date].[Date].CurrentMember},[Claim].[ClaimNumber]))
...you will notice that I do not have a measure in the syntax as I am rather trying to create one...am I on the worng track completely?
EO
Hertfordshire, England