![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Please may I have your assistance with the following My Analysis Server Db design is as follows Cube Name: Server_day with a source table filter "OLAPDeviceA"."isServer"=1 or "OLAPDeviceB"."isServer"=1 hence from the following dimensions DeviceA or DeviceB is a Server Dimensions:: Time_day DeviceA DeviceB LocationA LocationB Measures:: Bytes Bytes Sent Bytes Received AveTime Just for background information AveTime is the Network response time based on the conversation between A and B. I've design the cube is such a way where I can filter based on Location(Group of devices). The reason for A and B is I also need to be able to identify conversations external to a location ie LocationA<>LocationB Hence my data is based on a conversation between deviceA and deviceB where at least one of the devices is a server. deviceA or deviceB can have the following member properties (isServer=1, isWorkstation=0) or (isServer=0, isWorkstation=1). Example of my cube data for say date (Time_day) : 1/5/2004 DeviceA DeviceB LocationA LocationB Bytes Bytes Sent Bytes Rec AveTime S1 W1 X Y 4 2 2 0.5 W2 S1 Y X 3 1 2 0.01 W3 S1 X X 10 3 7 0.1 S2 S1 Y X 8 5 3 0.03 S1 S3 X Z 5 1 4 0.007 Example for of my cube data say date (Time_day) : 2/5/2004 DeviceA DeviceB LocationA LocationB Bytes Bytes Sent Bytes Rec AveTime S1 W3 X X 9 5 4 0.5 S3 S1 Z X 12 5 7 0.01 W2 S2 Y Y 5 3 2 0.1 S2 S3 Y Z 17 11 6 0.03 S3 S1 Z X 21 8 13 0.007 I need to be able to rank the Servers on a per date, total volume (Bytes) basis for example 1/5/2004 Rank Device Bytes Utilisation Avetime 1 S1 30 30/30 (.5+.01+.1+.03+.007)/5 2 S2 8 8/30 .03 3 S3 5 5/30 .007 2/5/2004 Rank Device Bytes Utilisation Avetime 1 S3 50 50/64 (.01+.03+.007)/3 2 S1 42 42/64 (.5+.01+.007)/3 3 S2 22 22/64 (.1+.03)/2 1/5/2004 - 2/5/2004 Rank Device Bytes Utilisation Avetime 1 S1 72 72/94 (.5+.01+.1+.03+.007+.5+.01+.007)/8 2 S3 55 55/94 (.007+.01+.03+.007)/4 3 S2 30 30/94 (.03+.1+.03)/3 Return all the above together in the following format date range 1/5 2/5 Rk Dev Bytes Util Avetime Rk Bytes Util Avetime Rk Bytes Util AveT 1 S1 72.....................1 30............. 2 42...... 2 S3 55.....................3 5.............. 1 50... 3 S2 30.............. 2 8............. 3 22... Any ideas on how I can generate the above using MDX would be greatly appreciated. Bearing in mind that the date range (example above 1/5/2004 - 2/5/2004) will be dynamic. Perhaps I need to re-design the cube to acheive my objective. Any advice would be great thanks John -- Message posted via http://www.sqlmonster.com |
#3
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |