![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
| SUM(Measures.Value) / SUM(Descendants |
|
Hi all, I am trying to perform a calculation which is causing me a headache because I can't write MDX! - any help would be appreciated here.Basically, I have the following scenario of data: Date Product Value Qty1 Qty2 1/1/05 ProductA £10 2 100 1/1/05 ProductB £15 5 100 1/1/05 ProductC £5 4 100 1/1/05 ProductD £30 7 100 1/1/05 ProductE £40 5 100 2/1/05 ProductA £10 2 250 2/1/05 ProductB £15 5 250 2/1/05 ProductC £5 4 250 2/1/05 ProductD £30 7 250 2/1/05 ProductE £40 5 250 3/1/05 ProductA £10 2 500 3/1/05 ProductB £15 5 500 3/1/05 ProductC £5 4 500 3/1/05 ProductD £30 7 500 3/1/05 ProductE £40 5 500 I want to be able to perform the sum value/Qty2, but i only want to perfom the division on one of the Qty2 values, plus, when i aggregate, I dont want the values to sum, i.e. producing a value of 500 for the data for 1/1/05. It should remain as 500 at any level of slicing and the 'Value' should always perform the calcualtion at any level of a dimension. Does this make sense? Sorry for the bad explanation, but i am new to AS and have been reall thrown in at the deep end as apparently DBA's should know everything! ![]() Any help is appreciated. Regards Immy |
![]() |
| Thread Tools | |
| Display Modes | |
| |